summaryrefslogtreecommitdiff
path: root/python/vyos/configsession.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/vyos/configsession.py')
-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 ed6288939..163f666c2 100644
--- a/python/vyos/configsession.py
+++ b/python/vyos/configsession.py
@@ -121,6 +121,7 @@ class ConfigSession(object):
p = subprocess.Popen(cmd_list, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, env=self.__session_env)
result = p.wait()
output = p.stdout.read().decode()
+ p.communicate()
if result != 0:
raise ConfigSessionError(output)
return output