both hostnames and mail addresses should composed by lowercase letters
[plcapi.git] / PLC / Nodes.py
index 46fb99a..28ff8c1 100644 (file)
@@ -88,6 +88,7 @@ class Node(Row):
     tags = { }
 
     def validate_hostname(self, hostname):
+        hostname = hostname.lower()
         if not valid_hostname(hostname):
             raise PLCInvalidArgument, "Invalid hostname"