diff options
| author | Joshua Powers <josh.powers@canonical.com> | 2020-06-10 07:39:29 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-10 10:39:29 -0400 |
| commit | f3bd42659efeed4b092ffcdfd5df7f24813f2d3e (patch) | |
| tree | 09e39d069dd98e19781859e17a03773b7cefff7f /cloudinit/net/__init__.py | |
| parent | f083050478adc199648c980991f2bcece79ed31b (diff) | |
| download | vyos-cloud-init-f3bd42659efeed4b092ffcdfd5df7f24813f2d3e.tar.gz vyos-cloud-init-f3bd42659efeed4b092ffcdfd5df7f24813f2d3e.zip | |
test: fix all flake8 E126 errors (#425)
Diffstat (limited to 'cloudinit/net/__init__.py')
| -rw-r--r-- | cloudinit/net/__init__.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cloudinit/net/__init__.py b/cloudinit/net/__init__.py index a57fea0a..b40cb154 100644 --- a/cloudinit/net/__init__.py +++ b/cloudinit/net/__init__.py @@ -849,8 +849,9 @@ def get_interfaces_by_mac_on_freebsd(): def get_interfaces_by_mac_on_netbsd(): ret = {} re_field_match = ( - r"(?P<ifname>\w+).*address:\s" - r"(?P<mac>([\da-f]{2}[:-]){5}([\da-f]{2})).*") + r"(?P<ifname>\w+).*address:\s" + r"(?P<mac>([\da-f]{2}[:-]){5}([\da-f]{2})).*" + ) (out, _) = subp.subp(['ifconfig', '-a']) if_lines = re.sub(r'\n\s+', ' ', out).splitlines() for line in if_lines: |
