Try to clear up messages prompting for domain and IPA server when DNS discovery fails to find them.

This commit is contained in:
Rob Crittenden
2008-05-30 14:40:25 -04:00
parent 2d588a8254
commit e935287f6e

View File

@@ -140,10 +140,10 @@ def main():
elif options.unattended:
return ret
else:
print "Failed to determine your DNS domain (DNS misconfigured?)"
print "DNS discovery failed to determine your DNS domain"
cli_domain = ""
while cli_domain == "":
cli_domain = raw_input("Please provide your domain name (ex: example.com): ")
cli_domain = raw_input("Please provide the domain name of your IPA server (ex: example.com): ")
ret = ds.search(domain=cli_domain, server=options.server)
if not cli_domain:
if ds.getDomainName():
@@ -157,10 +157,10 @@ def main():
elif options.unattended:
return ret
else:
print "Failed to find the IPA Server (DNS misconfigured?)"
print "DNS discovery failed to find the IPA Server"
cli_server = ""
while cli_server == "":
cli_server = raw_input("Please provide your server name (ex: ipa.example.com): ")
cli_server = raw_input("Please provide your IPA server name (ex: ipa.example.com): ")
ret = ds.search(domain=cli_domain, server=cli_server)
if not cli_server:
if ds.getServerName():