[heut2008,r=hopem]

Fix authorized_keys file becomes incorrect after removing a compute node and
then add a new node.
This commit is contained in:
Edward Hope-Morley 2014-04-11 13:08:46 +01:00
commit 0083481da9
1 changed files with 1 additions and 1 deletions

View File

@ -452,7 +452,7 @@ def ssh_compute_remove(public_key, user=None):
[keys.remove(key) for key in keys if key == public_key]
with open(authorized_keys(user), 'w') as _keys:
_keys.write('\n'.join(keys))
_keys.write('\n'.join(keys) + '\n')
def determine_endpoints(url):