Switched to lowercase "reserved" in the zone file because it flows
authorEvan Broder <broder@mit.edu>
Sat, 1 Nov 2008 08:27:41 +0000 (04:27 -0400)
committerEvan Broder <broder@mit.edu>
Sat, 1 Nov 2008 08:27:41 +0000 (04:27 -0400)
better in the error text

svn path=/trunk/packages/invirt-web/; revision=1495

code/validation.py

index 39c0084..f28603c 100644 (file)
@@ -281,7 +281,7 @@ def testName(user, name, machine=None):
             # dealt with
             answer = dns.resolver.query(hostname, 'TXT')
             txt = answer[0].strings[0]
-            if txt.startswith('Reserved'):
+            if txt.startswith('reserved'):
                 raise InvalidInput('name', name, 'The name you have requested has been %s. For more information, contact us at %s' % (txt, config.dns.contact))
 
         # If the hostname didn't exist, it would have thrown an