X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=plugins%2Fsliverauth.py;h=e840a4d5fe319deb6f4f0419dfac87d353c7209f;hb=d3a3b2d3ea98e72183d1cb5497c38badaa0c5863;hp=ce17b0cb54dbb57aa533eea456dc4024fbdedcbd;hpb=498a94a7c005d849f1775f84f53933d778674a5b;p=nodemanager.git diff --git a/plugins/sliverauth.py b/plugins/sliverauth.py index ce17b0c..e840a4d 100644 --- a/plugins/sliverauth.py +++ b/plugins/sliverauth.py @@ -57,7 +57,7 @@ def GetSlivers(data, config, plc): if instantiation == 'plc-instantiated': logger.log("sliverauth: plc-instantiated slice %s does not yet exist. IGNORING!" % sliver['name']) continue - + found_hmac = False for attribute in sliver['attributes']: name = attribute.get('tagname',attribute.get('name','')) @@ -76,7 +76,7 @@ def GetSlivers(data, config, plc): path = '/vservers/%s/etc/planetlab' % sliver['name'] if os.path.exists(path): - keyfile = '%s/key' % path + keyfile = '%s/key' % path oldhmac = '' if os.path.exists(keyfile): f = open(keyfile,'r') @@ -94,4 +94,3 @@ def GetSlivers(data, config, plc): logger.log("sliverauth: writing hmac to %s " % keyfile) os.chmod(keyfile,0400) -