use lowercase hostnames
[plcapi.git] / PLC / Nodes.py
index 6b799c1..96cce36 100644 (file)
@@ -92,6 +92,7 @@ class Node(Row):
     tags = { }
 
     def validate_hostname(self, hostname):
+        hostname = hostname.lower()
         if not valid_hostname(hostname):
             raise PLCInvalidArgument, "Invalid hostname"