X-Git-Url: http://git.onelab.eu/?p=nodemanager.git;a=blobdiff_plain;f=plugins%2Fvsys.py;h=38187633b025a5e1e393644c310ae7855220df77;hp=4e0a661c69bf7c7f1ac6b2635203672a02ec070d;hb=48a73b18fd7daed13c645c1adeddb57b560e7a2d;hpb=7b8fc390afd0349706c45c3ae970770cdf9dceae diff --git a/plugins/vsys.py b/plugins/vsys.py index 4e0a661..3818763 100644 --- a/plugins/vsys.py +++ b/plugins/vsys.py @@ -39,7 +39,7 @@ def GetSlivers(data, config=None, plc=None): # add to conf slices.append(sliver['name']) _restart = createVsysDir(sliver['name']) or _restart - if attribute['value'] in scripts.keys(): + if attribute['value'] in list(scripts.keys()): scripts[attribute['value']].append(sliver['name']) # Write the conf @@ -105,7 +105,7 @@ def writeAcls(currentscripts, oldscripts): # not the same as length of values of new scripts, # and length of non intersection along new scripts is not 0, # then dicts are different. - for (acl, oldslivers) in oldscripts.iteritems(): + for (acl, oldslivers) in oldscripts.items(): try: if (len(oldslivers) != len(currentscripts[acl])) or \ (len(set(oldslivers) - set(currentscripts[acl])) != 0):