diff options
| author | Christian Breunig <christian@breunig.cc> | 2025-07-21 21:07:56 +0200 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2025-07-21 21:07:56 +0200 |
| commit | ef3ed4feae0a08be815020a0013bd6217d70381c (patch) | |
| tree | ed462e0f9e2be10bc8d96856074391f090f83e4f /python | |
| parent | 5f3485d44151dab88b7ca11d12e61fd990457f03 (diff) | |
| download | vyos-1x-ef3ed4feae0a08be815020a0013bd6217d70381c.tar.gz vyos-1x-ef3ed4feae0a08be815020a0013bd6217d70381c.zip | |
vyos.utils: T7648: fix undefined variable in install_into_config
************* Module vyos.utils.misc
python/vyos/utils/misc.py:51:46: E0602: Undefined variable 'node' (undefined-variable)
Diffstat (limited to 'python')
| -rw-r--r-- | python/vyos/utils/misc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/utils/misc.py b/python/vyos/utils/misc.py index 0ffd82696..c7f7e7343 100644 --- a/python/vyos/utils/misc.py +++ b/python/vyos/utils/misc.py @@ -48,7 +48,7 @@ def install_into_config(conf, config_paths, override_prompt=True): for path in config_paths: if override_prompt and conf.exists(path) and not conf.is_multi(path): - if not ask_yes_no(f'Config node "{node}" already exists. Do you want to overwrite it?'): + if not ask_yes_no(f'Config node "{path}" already exists. Do you want to overwrite it?'): continue try: |
