hotfix: the ssh_key for slivers was not properly compared, and was
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 23 Sep 2010 10:44:40 +0000 (12:44 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 23 Sep 2010 10:44:40 +0000 (12:44 +0200)
causing a storm of UpdateSliceTags

plugins/sliverauth.py

index 51f44c9..a02b5e3 100644 (file)
@@ -108,7 +108,7 @@ def generate_sshkey (sliver):
         logger.log_call( [ 'ssh-keygen', '-t', 'rsa', '-N', '', '-f', keyfile , '-C', comment] )
         os.chmod (keyfile, 0400)
         logger.log_call ( [ 'chown', "%s:slices"%(sliver['name']), keyfile, pubfile ] )
-    return file(pubfile).read()
+    return file(pubfile).read().strip()
 
 # a sliver can get created, deleted and re-created
 # the slice having the tag is not sufficient to skip key geneneration