X-Git-Url: http://git.onelab.eu/?p=monitor.git;a=blobdiff_plain;f=monitor%2Fwrapper%2Fplc.py;h=ae378515838fd9503763e91b882d6ea51d4e1dd9;hp=00632bfd404a4945d531dd66b98b5a67629687e2;hb=3b89b6f104b7e4e93e4c32a4d188664bb6b3e34f;hpb=f4f26439ae2db33f8f9a55e1a3350f6ed4f78278 diff --git a/monitor/wrapper/plc.py b/monitor/wrapper/plc.py index 00632bf..ae37851 100644 --- a/monitor/wrapper/plc.py +++ b/monitor/wrapper/plc.py @@ -412,7 +412,8 @@ def enableSiteSlices(loginbase): for attr in l_attr: if "enabled" == attr['tagname'] and attr['value'] == "0": logger.info("Deleted enable=0 attribute from slice %s" % slice) - api.DeleteSliceTag(auth.auth, attr['slice_tag_id']) + if not isSliceExempt(slice): + api.DeleteSliceTag(auth.auth, attr['slice_tag_id']) except Exception, exc: logger.info("enableSiteSlices: %s" % exc) print "exception: %s" % exc