From 305fcdc8614196d9c2a97491e1862cd00bbd7d12 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Thu, 12 Nov 2026 17:32:36 +0100 Subject: 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. --- src/helpers/vyos-boot-config-loader.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3