From 2c1a3ba524e2f448568f17e1429af896a8f946d4 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Mon, 20 Jul 2026 13:38:54 -0500 Subject: 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. --- python/vyos/configmanager.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python') 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('-', '_') -- cgit v1.2.3