don't raise the exception if certmaster is down or not available
authorS.Çağlar Onur <caglar@cs.princeton.edu>
Mon, 16 Aug 2010 16:08:03 +0000 (12:08 -0400)
committerS.Çağlar Onur <caglar@cs.princeton.edu>
Mon, 16 Aug 2010 16:08:03 +0000 (12:08 -0400)
certmaster/utils.py

index 6b79ce7..1bf931e 100644 (file)
@@ -173,7 +173,7 @@ def create_minion_keys(hostname=None):
             log.debug("submitting CSR: %s  to certmaster %s" % (csr_file, master_uri))
             result, cert_string, ca_cert_string = submit_csr_to_master(csr_file, master_uri)
         except socket.gaierror, e:
-            raise codes.CMException, "Could not locate certmaster at %s" % master_uri
+            log.warning("Could not locate certmaster at %s" % master_uri)
 
         # logging here would be nice
         if not result: