From 2c2a6440b71e26d6921924d3b840e1c35f5e2079 Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Sat, 1 Nov 2008 04:27:41 -0400 Subject: [PATCH] Switched to lowercase "reserved" in the zone file because it flows better in the error text svn path=/trunk/packages/invirt-web/; revision=1495 --- code/validation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/validation.py b/code/validation.py index 39c0084..f28603c 100644 --- a/code/validation.py +++ b/code/validation.py @@ -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 -- 1.7.9.5