Fix wording of error message.

ticket 1009
This commit is contained in:
Jan Cholasta 2011-03-28 15:35:36 +02:00 committed by Rob Crittenden
parent 509c772f13
commit b29bd47273

View File

@ -115,7 +115,7 @@ def verify_fqdn(host_name,no_host_dns=False):
for a in hostaddr:
if a[4][0] == '127.0.0.1' or a[4][0] == '::1':
raise RuntimeError("The IPA Server hostname cannot resolve to localhost (%s). A routable IP address must be used. Check /etc/hosts to see if %s is an alias for %s" % (a[4][0], host_name, a[4][0]))
raise RuntimeError("The IPA Server hostname must not resolve to localhost (%s). A routable IP address must be used. Check /etc/hosts to see if %s is an alias for %s" % (a[4][0], host_name, a[4][0]))
try:
resaddr = a[4][0]
revname = socket.gethostbyaddr(a[4][0])[0]