Switched to lowercase "reserved" in the zone file because it flows
[invirt/packages/invirt-web.git] / 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