Commit 9b91c63b authored by Weibin Sun's avatar Weibin Sun Committed by Robert Ricci

Bad python indentation bug

parent f68e8ffd
......@@ -266,13 +266,13 @@ def _listVlans():
if vc[vnum].configuredName.startswith(VLAN_ID_PREFIX):
vnums.append(vnum)
for vn in vnums:
ports = []
if vs.has_key(vn):
ports = vs[vn].vlanPortStatus.keys()
for vn in vnums:
ports = []
if vs.has_key(vn):
ports = vs[vn].vlanPortStatus.keys()
vid = vc[vn].configuredName[len(VLAN_ID_PREFIX):]
vlans.append([vid, vn, ports])
vid = vc[vn].configuredName[len(VLAN_ID_PREFIX):]
vlans.append([vid, vn, ports])
except:
print sign + " error: "+ str(sys.exc_info())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment