From 28f40317f178a2825ebecc521da9d9d694415453 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Thu, 2 Dec 2021 18:13:29 -0600 Subject: configquery: T3402: use vyatta-op-cmd-wrapper to provide environment (cherry picked from commit ae16a51506cdc4de8e18f4678b8f55654d4abbba) --- python/vyos/configquery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/vyos/configquery.py b/python/vyos/configquery.py index 9c3c5804c..f835bc9b2 100644 --- a/python/vyos/configquery.py +++ b/python/vyos/configquery.py @@ -106,7 +106,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 -- cgit v1.2.3