Skip to content
Snippets Groups Projects
Commit 7a0156dc authored by Luca Bigliardi's avatar Luca Bigliardi
Browse files

Fix authorized_keys generation at cluster init


Copy pub_key in authorized_keys.

Signed-off-by: default avatarLuca Bigliardi <shammash@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 62947ebb
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,7 @@ def _InitSSHSetup():
raise errors.OpExecError("Could not generate ssh keypair, error %s" %
result.output)
utils.AddAuthorizedKey(auth_keys, utils.ReadFile(auth_keys))
utils.AddAuthorizedKey(auth_keys, utils.ReadFile(pub_key))
def _GenerateSelfSignedSslCert(file_name, validity=(365 * 5)):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment