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
This commit is contained in:
John L. Villalovos 2016-10-06 15:08:27 -07:00
parent aebd030a32
commit cc85d486b4
1 changed files with 1 additions and 1 deletions

View File

@ -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')