address PR comments and fix pre-commit

This commit is contained in:
Jeff Ahrenholz 2019-11-07 09:01:01 -08:00
parent 6be1e19d98
commit ddcce82af4

View file

@ -126,7 +126,10 @@ class LinuxNetClient:
:param str device: device to flush
:return: nothing
"""
self.run(f"[ -e /sys/class/net/{device} ] && {IP_BIN} -6 address flush dev {device} || echo")
self.run(
f"[ -e /sys/class/net/{device} ] && {IP_BIN} -6 address flush dev {device} || true",
shell=True,
)
def device_mac(self, device, mac):
"""