use lowercase hostnames
authorS.Çağlar Onur <caglar@cs.princeton.edu>
Thu, 22 Jul 2010 20:39:12 +0000 (16:39 -0400)
committerS.Çağlar Onur <caglar@cs.princeton.edu>
Thu, 22 Jul 2010 20:39:12 +0000 (16:39 -0400)
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"