Commit cd6470d4 authored by Dmitry Lukhtionov's avatar Dmitry Lukhtionov
Browse files

Fix pep8

parent 3d3a5c8a
Pipeline #31843 passed with stages
in 13 minutes and 53 seconds
...@@ -83,8 +83,8 @@ class Script(BaseScript): ...@@ -83,8 +83,8 @@ class Script(BaseScript):
cmd = self.cli("show interfaces mac-address") cmd = self.cli("show interfaces mac-address")
for match in self.rx_mac1.finditer(cmd): for match in self.rx_mac1.finditer(cmd):
macs[match.group("port")] = match.group("mac") macs[match.group("port")] = match.group("mac")
for l in self.cli("show interfaces vlans").split("\n\n"): for line in self.cli("show interfaces vlans").split("\n\n"):
match = self.rx_vlan.search(l) match = self.rx_vlan.search(line)
if match: if match:
if match.group("tagged") != "none": if match.group("tagged") != "none":
tagged_vlans[match.group("port")] = self.expand_rangelist( tagged_vlans[match.group("port")] = self.expand_rangelist(
......
Supports Markdown
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