summaryrefslogtreecommitdiff
path: root/src/helpers
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2020-04-10 10:45:30 -0500
committerJohn Estabrook <jestabro@vyos.io>2020-04-10 10:45:30 -0500
commita68198f9bf18b76526c44d30af54cf85acd70972 (patch)
treea139e7a0945d42f24985a8c511eeed4471c7d06e /src/helpers
parent8e6948f226f4abc749287441c794cf5aeb6da349 (diff)
downloadvyos-1x-a68198f9bf18b76526c44d30af54cf85acd70972.tar.gz
vyos-1x-a68198f9bf18b76526c44d30af54cf85acd70972.zip
util: T2253: fix translation to cmd
Diffstat (limited to 'src/helpers')
-rwxr-xr-xsrc/helpers/vyos-merge-config.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/helpers/vyos-merge-config.py b/src/helpers/vyos-merge-config.py
index 6546c03e3..14df2734b 100755
--- a/src/helpers/vyos-merge-config.py
+++ b/src/helpers/vyos-merge-config.py
@@ -23,7 +23,7 @@ import vyos.remote
from vyos.config import Config
from vyos.configtree import ConfigTree
from vyos.migrator import Migrator, VirtualMigrator
-from vyos.util import cmd
+from vyos.util import cmd, DEVNULL
if (len(sys.argv) < 2):
@@ -99,9 +99,9 @@ if (len(sys.argv) > 2):
if path:
add_cmds = [ cmd for cmd in add_cmds if path in cmd ]
-for cmd in add_cmds:
+for add in add_cmds:
try:
- cmd(f'/opt/vyatta/sbin/my_{cmd}', message='Called process error')
+ cmd(f'/opt/vyatta/sbin/my_{add}', shell=True, stderr=DEVNULL)
except OSError as err:
print(err)