do not update the 'updated' timestamp when updating the 'enacted' timestamp otherwise...
[plstackapi.git] / planetstack / openstack / driver.py
index 530d93b..4c0791e 100644 (file)
@@ -312,9 +312,9 @@ class OpenStackDriver:
         if not security_group:
             security_group = self.config.nova_default_security_group 
 
-        #authorized_keys = "\n".join(pubkeys)
-        #files = {'/root/.ssh/authorized_keys': authorized_keys}
         files = {}
+        if pubkeys:    
+            files['/root/.ssh/authorized_keys'] = "\n".join(pubkeys)
        
         hints = {}
         availability_zone = None