mkstemp returns a tuple
[sfa.git] / sfa / server / sfa_component_setup.py
index d2d5a3b..78bc125 100755 (executable)
@@ -50,8 +50,8 @@ def get_node_key(registry=None, verbose=False):
     # this call requires no authentication, 
     # so we can generate a random keypair here
     subject="component"
-    keyfile = tempfile.mkstemp()
-    certfile = tempfile.mkstemp()
+    (kfd, keyfile) = tempfile.mkstemp()
+    (cfd, certfile) = tempfile.mkstemp()
     key = Keypair(create=True)
     key.save_to_file(keyfile)
     cert = Certificate(subject=subject)