summaryrefslogtreecommitdiff
path: root/python/vyos
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2019-08-05 21:19:44 +0200
committerDaniil Baturin <daniil@baturin.org>2019-08-05 21:19:44 +0200
commitb4ed7280179e814b9837a0fbfa05ff8065dd8b50 (patch)
tree6a24ca0b55cf0b51c0c8d6867654e38360466951 /python/vyos
parent2afd1163361ea2ad3e94f51eac882007d8f9b7cf (diff)
downloadvyos-1x-b4ed7280179e814b9837a0fbfa05ff8065dd8b50.tar.gz
vyos-1x-b4ed7280179e814b9837a0fbfa05ff8065dd8b50.zip
[vyos.configsession] Return the output of the external process from __run_command.
Diffstat (limited to 'python/vyos')
-rw-r--r--python/vyos/configsession.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/vyos/configsession.py b/python/vyos/configsession.py
index 78f332d66..1a8077edd 100644
--- a/python/vyos/configsession.py
+++ b/python/vyos/configsession.py
@@ -116,6 +116,7 @@ class ConfigSession(object):
output = p.stdout.read().decode()
if result != 0:
raise ConfigSessionError(output)
+ return output
def get_session_env(self):
return self.__session_env