Make retrieval of the CA during DNS discovery non-fatal.

ticket 1135
This commit is contained in:
Rob Crittenden 2011-03-29 13:27:11 -04:00
parent 8719336652
commit b3a85890ef

View File

@ -185,7 +185,8 @@ class IPADiscovery:
try:
run(["/usr/bin/wget", "-O", "%s/ca.crt" % temp_ca_dir, "http://%s/ipa/config/ca.crt" % thost])
except CalledProcessError, e:
raise RuntimeError('Retrieving CA from %s failed.\n%s' % (thost, str(e)))
logging.debug('Retrieving CA from %s failed.\n%s' % (thost, str(e)))
return []
#now verify the server is really an IPA server
try: