catch syntax/logic issue correctly -> thanks to greg
authorSeth Vidal <skvidal@fedoraproject.org>
Fri, 15 Oct 2010 17:54:37 +0000 (13:54 -0400)
committerSeth Vidal <skvidal@fedoraproject.org>
Fri, 15 Oct 2010 17:54:37 +0000 (13:54 -0400)
certmaster/utils.py

index 968d697..02c28e0 100644 (file)
@@ -139,7 +139,7 @@ def create_minion_keys(hostname=None):
         raise codes.CMException("Could not determine a hostname other than localhost")
     else:
         # use lowercase letters for hostnames
-        hostname = hostname.lower()
+        hn = hn.lower()
 
     key_file = '%s/%s.pem' % (cert_dir, hn)
     csr_file = '%s/%s.csr' % (cert_dir, hn)