From a857692c3e16649aa536be13dd6979569bd74c46 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 23 Sep 2010 12:44:40 +0200 Subject: [PATCH] hotfix: the ssh_key for slivers was not properly compared, and was causing a storm of UpdateSliceTags --- plugins/sliverauth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sliverauth.py b/plugins/sliverauth.py index 51f44c9..a02b5e3 100644 --- a/plugins/sliverauth.py +++ b/plugins/sliverauth.py @@ -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 -- 2.43.0