remove shell=True from run command

This commit is contained in:
Jeff Ahrenholz 2019-11-07 11:38:31 -08:00
parent ddcce82af4
commit 2d9cf81d0b

View file

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