summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmorphlib/exts/ssh.configure2
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/exts/ssh.configure b/morphlib/exts/ssh.configure
index 75b46b11..6012f298 100755
--- a/morphlib/exts/ssh.configure
+++ b/morphlib/exts/ssh.configure
@@ -114,7 +114,7 @@ class SshConfigurationExtension(cliapp.Application):
s = len(base)
nw_dst = os.path.join(dest, new + base[st:s-fi-4])
shutil.copy(key, nw_dst + '.pub')
- os.chmod(nw_dst, 0644)
+ os.chmod(nw_dst + '.pub', 0644)
def comb_auth_key(self, keys, dest):
'''Combines authorized_keys file in new VM'''