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:
b5ea7d8
)
Make usage of sliver auth configurable from the _default slice attribute
author
Marc Fiuczynski
<mef@cs.princeton.edu>
Fri, 30 Oct 2009 18:06:00 +0000
(18:06 +0000)
committer
Marc Fiuczynski
<mef@cs.princeton.edu>
Fri, 30 Oct 2009 18:06:00 +0000
(18:06 +0000)
plugins/sliverauth.py
patch
|
blob
|
history
diff --git
a/plugins/sliverauth.py
b/plugins/sliverauth.py
index
1327326
..
f22a60d
100644
(file)
--- a/
plugins/sliverauth.py
+++ b/
plugins/sliverauth.py
@@
-30,6
+30,11
@@
def SetSliverTag(plc, slice, tagname, value):
plc.UpdateSliceTag(slivertag_id,value)
def GetSlivers(data, config, plc):
plc.UpdateSliceTag(slivertag_id,value)
def GetSlivers(data, config, plc):
+ if 'OVERRIDES' in dir(config):
+ if config.OVERRIDES.get('sliverauth') == '-1':
+ logger.log("sliverauth: Disabled", 2)
+ return
+
if 'slivers' not in data:
logger.log("sliverauth: getslivers data lack's sliver information. IGNORING!")
return
if 'slivers' not in data:
logger.log("sliverauth: getslivers data lack's sliver information. IGNORING!")
return