summaryrefslogtreecommitdiff
path: root/src/helpers/vyos-load-config.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-11-27 17:47:59 +0100
committerGitHub <noreply@github.com>2023-11-27 17:47:59 +0100
commit39cb031dadb52d0175b84edd8d863418c3ca53cc (patch)
treeb37f80fdf0c7df960bcc9de4a58c356cd9e0f315 /src/helpers/vyos-load-config.py
parentd026297e12e097bc1d178e320fa4f1a93ee37926 (diff)
parent9e97aa8764b369c90d42497c0897efd7b76634ea (diff)
downloadvyos-1x-39cb031dadb52d0175b84edd8d863418c3ca53cc.tar.gz
vyos-1x-39cb031dadb52d0175b84edd8d863418c3ca53cc.zip
Merge pull request #2548 from vyos/mergify/bp/equuleus/pr-2511
T5763: fix imprecise check for remote file name (backport #2511)
Diffstat (limited to 'src/helpers/vyos-load-config.py')
-rwxr-xr-xsrc/helpers/vyos-load-config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers/vyos-load-config.py b/src/helpers/vyos-load-config.py
index e579e81b2..4ec865454 100755
--- a/src/helpers/vyos-load-config.py
+++ b/src/helpers/vyos-load-config.py
@@ -66,7 +66,7 @@ def get_local_config(filename):
return config_str
-if any(x in file_name for x in protocols):
+if any(file_name.startswith(f'{x}://') for x in protocols):
config_string = vyos.remote.get_remote_config(file_name)
if not config_string:
sys.exit(f"No such config file at '{file_name}'")