diff options
author | Christian Breunig <christian@breunig.cc> | 2024-12-18 19:36:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-18 19:36:27 +0100 |
commit | 11e89b1a1295b21d8c3b3e3d556ecb00506856ab (patch) | |
tree | 90042f49e28ad905b19d28d33e8643770eb99a6d /python | |
parent | 90773748365e7ba1447f39b67fbe4e2f0862f084 (diff) | |
parent | a7be3c684f6e78bb9fce23948d1d3a794febe29a (diff) | |
download | vyos-1x-11e89b1a1295b21d8c3b3e3d556ecb00506856ab.tar.gz vyos-1x-11e89b1a1295b21d8c3b3e3d556ecb00506856ab.zip |
Merge pull request #4225 from natali-rs1985/T6767
op_mode: T6767: Check latest image version in VRF context for "add system image latest vrf <name>"
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/utils/process.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/utils/process.py b/python/vyos/utils/process.py index ce880f4a4..d8aabb822 100644 --- a/python/vyos/utils/process.py +++ b/python/vyos/utils/process.py @@ -128,7 +128,7 @@ def run(command, flag='', shell=None, input=None, timeout=None, env=None, def cmd(command, flag='', shell=None, input=None, timeout=None, env=None, stdout=PIPE, stderr=PIPE, decode='utf-8', raising=None, message='', - expect=[0]): + expect=[0], auth=''): """ A wrapper around popen, which returns the stdout and will raise the error code of a command @@ -139,7 +139,7 @@ def cmd(command, flag='', shell=None, input=None, timeout=None, env=None, expect: a list of error codes to consider as normal """ decoded, code = popen( - command, flag, + f'{auth} {command}'.strip(), flag, stdout=stdout, stderr=stderr, input=input, timeout=timeout, env=env, shell=shell, |