From c0042c6fed55a418ba566d2a4a5f56b5ab45df45 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Thu, 18 Nov 2010 12:03:46 +0100 Subject: [PATCH] set ssh tag only if omf_control is tag is set --- plugins/sliverauth.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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): -- 2.43.0