diff options
| author | John Estabrook <jestabro@vyos.io> | 2026-07-20 13:38:54 -0500 |
|---|---|---|
| committer | John Estabrook <jestabro@vyos.io> | 2026-07-20 14:25:16 -0500 |
| commit | 2c1a3ba524e2f448568f17e1429af896a8f946d4 (patch) | |
| tree | 71a6a942cca73614d66f8f09f5280533d56c4ad7 /python | |
| parent | 69039b47017bc0187e3305759278fc42d62d3743 (diff) | |
| download | vyos-1x-2c1a3ba524e2f448568f17e1429af896a8f946d4.tar.gz vyos-1x-2c1a3ba524e2f448568f17e1429af896a8f946d4.zip | |
T9105: confirm existence of config-mode file before use
The vyos-configd list of config mode files available for loading is
generated at build time, however, this can be a superset of files
present on the running system; confirm existence before load.
An example of the above discrepancy is apparent in case supplementary
*.deb packages are not required. Recent refactoring of vyos-configd
dropped a legacy construction independent of the build-time list,
introducing the regression.
Diffstat (limited to 'python')
| -rw-r--r-- | python/vyos/configmanager.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/vyos/configmanager.py b/python/vyos/configmanager.py index 0e7b160c8..46bff08b0 100644 --- a/python/vyos/configmanager.py +++ b/python/vyos/configmanager.py @@ -75,6 +75,8 @@ class ConfigManager: components = {} for file in include_list: path = Path(config_scripts_dir).joinpath(file) + if not path.exists(): + continue file_stem = Path(file).stem name = file_stem.replace('-', '_') |
