git://git.onelab.eu
/
nodemanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0042c6
)
manage hmac slice tag only if slice has enable_hmac tag set
author
Barış Metin
<Talip-Baris.Metin@sophia.inria.fr>
Fri, 19 Nov 2010 14:38:20 +0000
(15:38 +0100)
committer
Barış Metin
<Talip-Baris.Metin@sophia.inria.fr>
Fri, 19 Nov 2010 14:38:20 +0000
(15:38 +0100)
plugins/sliverauth.py
patch
|
blob
|
history
diff --git
a/plugins/sliverauth.py
b/plugins/sliverauth.py
index
b58492f
..
9e872c5
100644
(file)
--- a/
plugins/sliverauth.py
+++ b/
plugins/sliverauth.py
@@
-46,12
+46,11
@@
def GetSlivers(data, config, plc):
logger.log("sliverauth: plc-instantiated slice %s does not yet exist. IGNORING!" % sliver['name'])
continue
- manage_hmac (plc, sliver)
-
for chunk in sliver['attributes']:
- if chunk['tagname']=='omf_control':
+ if chunk['tagname']=='enable_hmac':
+ manage_hmac (plc, sliver)
+ elif chunk['tagname']=='omf_control':
manage_sshkey (plc, sliver)
- break
def SetSliverTag(plc, slice, tagname, value):