From cc85d486b488405a5a014bd01942f5096388f0b6 Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Thu, 6 Oct 2016 15:08:27 -0700 Subject: [PATCH] Have an ending line-feed on the generated id_rsa.pub file Previously there was no ending line feed on the generated id_rsa.pub file. This could cause a problem as that file is copied to become the authorized_keys file and made it difficult to add additional keys to the file. Change-Id: I830dfa3a0c0f17a0c504567ec64569cb918a0a1c --- nodepool/nodepool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodepool/nodepool.py b/nodepool/nodepool.py index c352ed70a..d3d793c71 100644 --- a/nodepool/nodepool.py +++ b/nodepool/nodepool.py @@ -678,7 +678,7 @@ class NodeLauncher(threading.Thread): key.write_private_key(f) f.close() f = ftp.open('/etc/nodepool/id_rsa.pub', 'w') - f.write(public_key) + f.write(public_key + '\n') f.close() # Provider information for this node set f = ftp.open('/etc/nodepool/provider', 'w')