Copy pub_key in authorized_keys.
Signed-off-by: Luca Bigliardi <[email protected]>
---
lib/bootstrap.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/bootstrap.py b/lib/bootstrap.py
index 818fede..214ad98 100644
--- a/lib/bootstrap.py
+++ b/lib/bootstrap.py
@@ -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)):
--
1.5.4.3