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:
parent
aebd030a32
commit
cc85d486b4
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue