[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:
commit
0083481da9
@ -452,7 +452,7 @@ def ssh_compute_remove(public_key, user=None):
|
|||||||
[keys.remove(key) for key in keys if key == public_key]
|
[keys.remove(key) for key in keys if key == public_key]
|
||||||
|
|
||||||
with open(authorized_keys(user), 'w') as _keys:
|
with open(authorized_keys(user), 'w') as _keys:
|
||||||
_keys.write('\n'.join(keys))
|
_keys.write('\n'.join(keys) + '\n')
|
||||||
|
|
||||||
|
|
||||||
def determine_endpoints(url):
|
def determine_endpoints(url):
|
||||||
|
Loading…
Reference in New Issue
Block a user