diff options
author | Christian Breunig <christian@breunig.cc> | 2023-11-20 19:38:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-20 19:38:42 +0100 |
commit | cec47950a5d30944c0063723d3967cd17502d6b1 (patch) | |
tree | 093c5f70800e26f371bb75783ba90664ae19990f /src | |
parent | 03740f14ff0b34c997e74511ac35dbf3c1e48309 (diff) | |
parent | 11daa5eac463814cad32324081f94ebc0737d9e5 (diff) | |
download | vyos-1x-cec47950a5d30944c0063723d3967cd17502d6b1.tar.gz vyos-1x-cec47950a5d30944c0063723d3967cd17502d6b1.zip |
Merge pull request #2514 from vyos/mergify/bp/sagitta/pr-2511
T5763: fix imprecise check for remote file name (backport #2511)
Diffstat (limited to 'src')
-rwxr-xr-x | src/helpers/vyos-load-config.py | 2 |
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}'") |