diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-11-12 17:32:36 +0100 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2026-11-12 17:32:36 +0100 |
| commit | 305fcdc8614196d9c2a97491e1862cd00bbd7d12 (patch) | |
| tree | 3ef5ccd2576c0a93cd7dc811c0ba8473af541a6d /src | |
| parent | 6f56076bcd3815eabb257d33cd9b302116fa3d4a (diff) | |
| download | vyos-1x-305fcdc8614196d9c2a97491e1862cd00bbd7d12.tar.gz vyos-1x-305fcdc8614196d9c2a97491e1862cd00bbd7d12.zip | |
boot-config-loader: T9615: assign config file name outside the else branch
No functional change, pylint reported a used-before-assignment as it
does not know the other branch exits.
Diffstat (limited to 'src')
| -rwxr-xr-x | src/helpers/vyos-boot-config-loader.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/helpers/vyos-boot-config-loader.py b/src/helpers/vyos-boot-config-loader.py index e01b5bff6..7f15adb23 100755 --- a/src/helpers/vyos-boot-config-loader.py +++ b/src/helpers/vyos-boot-config-loader.py @@ -110,8 +110,7 @@ if __name__ == '__main__': if len(sys.argv) < 2: print("Must specify boot config file.") sys.exit(1) - else: - file_name = sys.argv[1] + file_name = sys.argv[1] # Set user and group options, so that others will be able to commit # Currently, the only caller does 'sg CFG_GROUP', but that may change |
