import tools
def start(options, conf):
+ # XXX REMOVE ME
+ return
+
logger.log("sliverauth plugin starting up...")
def SetSliverTag(plc, slice, tagname, value):
slivertag_id=slivertags[0]['slice_tag_id']
plc.UpdateSliceTag(slivertag_id,value)
-def GetSlivers(plc, data, conf):
+def GetSlivers(data, config, plc):
if 'slivers' not in data:
logger.log("sliverauth: getslivers data lack's sliver information. IGNORING!")
return
for sliver in data['slivers']:
found_hmac = False
for attribute in sliver['attributes']:
- name = attribute.get('tagname',attribute.get('name',''))
+ name = attribute.get('tagname',attribute.get('name',''))
if name == 'hmac':
found_hmac = True
hmac = attribute['value']