summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2021-12-02 18:13:29 -0600
committerJohn Estabrook <jestabro@vyos.io>2021-12-02 18:13:29 -0600
commitae16a51506cdc4de8e18f4678b8f55654d4abbba (patch)
treedcd4c42bed7fcb94e73a96a5aefee97a42b27e77
parent485c931b3203c2fda905b0b6d5f649937f990ef7 (diff)
downloadvyos-1x-ae16a51506cdc4de8e18f4678b8f55654d4abbba.tar.gz
vyos-1x-ae16a51506cdc4de8e18f4678b8f55654d4abbba.zip
configquery: T3402: use vyatta-op-cmd-wrapper to provide environment
-rw-r--r--python/vyos/configquery.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/configquery.py b/python/vyos/configquery.py
index 1cdcbcf39..b981463e4 100644
--- a/python/vyos/configquery.py
+++ b/python/vyos/configquery.py
@@ -110,7 +110,7 @@ class VbashOpRun(GenericOpRun):
def run(self, path: list, **kwargs):
cmd = ' '.join(path)
- (out, err) = vyos.util.popen(f'. /opt/vyatta/share/vyatta-op/functions/interpreter/vyatta-op-run; _vyatta_op_run {cmd}', stderr=STDOUT, **kwargs)
+ (out, err) = vyos.util.popen(f'/opt/vyatta/bin/vyatta-op-cmd-wrapper {cmd}', stderr=STDOUT, **kwargs)
if err:
raise ConfigQueryError(out)
return out