From: Barış Metin Date: Thu, 18 Nov 2010 11:03:46 +0000 (+0100) Subject: set ssh tag only if omf_control is tag is set X-Git-Tag: nodemanager-2.0-22~2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=c0042c6fed55a418ba566d2a4a5f56b5ab45df45;p=nodemanager.git set ssh tag only if omf_control is tag is set --- diff --git a/plugins/sliverauth.py b/plugins/sliverauth.py index a02b5e3..b58492f 100644 --- a/plugins/sliverauth.py +++ b/plugins/sliverauth.py @@ -47,7 +47,11 @@ def GetSlivers(data, config, plc): continue manage_hmac (plc, sliver) - manage_sshkey (plc, sliver) + + for chunk in sliver['attributes']: + if chunk['tagname']=='omf_control': + manage_sshkey (plc, sliver) + break def SetSliverTag(plc, slice, tagname, value):