From: Jiri Pirko <jiri(a)mellanox.com>
Signed-off-by: Jiri Pirko <jiri(a)mellanox.com>
---
lnst/Controller/Task.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/lnst/Controller/Task.py b/lnst/Controller/Task.py
index fefe2cb..1226ce2 100644
--- a/lnst/Controller/Task.py
+++ b/lnst/Controller/Task.py
@@ -754,6 +754,15 @@ class ProcessAPI(object):
"""
return self._cmd_res
+ def out(self):
+ """
+ Returns the whole comand result stdout.
+
+ :return: Command result stdout.
+ :rtype: str
+ """
+ return self.get_result()["res_data"]["stdout"]
+
def wait(self):
""" Blocking wait until the command returns. """
if self._bg_id:
--
2.5.5