diff options
author | John Estabrook <jestabro@vyos.io> | 2023-11-20 09:40:58 -0600 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2023-11-20 17:33:05 +0000 |
commit | 11daa5eac463814cad32324081f94ebc0737d9e5 (patch) | |
tree | ab00dbaa945e61c5ca51fd6dd415e3eeb8349498 /src/helpers | |
parent | 0650054e646d5119040635fbd19ae15785c16aa8 (diff) | |
download | vyos-1x-11daa5eac463814cad32324081f94ebc0737d9e5.tar.gz vyos-1x-11daa5eac463814cad32324081f94ebc0737d9e5.zip |
T5763: fix imprecise check for remote file name
(cherry picked from commit fe9b08665367b8e7d9b906a0760d44efc9b5cafb)
Diffstat (limited to 'src/helpers')
-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}'") |