Removed the "save_output" flag from Host.cmd and used the ProcessAPI.out
function to retrice command output.
Signed-off-by: Yotam Gigi <yotamg(a)mellanox.com>
---
recipes/switchdev/l2-021-span.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/recipes/switchdev/l2-021-span.py b/recipes/switchdev/l2-021-span.py
index ca7d15e..1d68cd4 100644
--- a/recipes/switchdev/l2-021-span.py
+++ b/recipes/switchdev/l2-021-span.py
@@ -38,8 +38,8 @@ class MirredPort:
ingress_str = "ingress" if ingress else ""
from_dev = self.mirred_port.get_devname()
cmd = self.mach.run("tc filter show dev %s %s" % (from_dev,
- ingress_str), save_output=True)
- output = cmd.get_result()["res_data"]["stdout"]
+ ingress_str))
+ output = cmd.out()
return re.findall("pref (\\d+) .* handle .*\n.* device %s" %
to_port.get_devname(), output, re.M)
--
2.4.11