From abedc2155adad8f8df1c99b46bfba171cb14db65 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Wed, 5 Feb 2020 19:33:58 +0100 Subject: radius: T1948: rename server dictionary --- src/conf_mode/system-login-radius.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/conf_mode/system-login-radius.py b/src/conf_mode/system-login-radius.py index 8f5d7bc36..515e4f637 100755 --- a/src/conf_mode/system-login-radius.py +++ b/src/conf_mode/system-login-radius.py @@ -73,7 +73,7 @@ def get_config(): # Read in all RADIUS servers and store to list for server in conf.list_nodes(['server']): - radius = { + server_cfg = { 'address': server, 'key': '', 'port': '1812', @@ -83,18 +83,18 @@ def get_config(): # RADIUS shared secret if conf.exists(['key']): - radius['key'] = conf.return_value(['key']) + server_cfg['key'] = conf.return_value(['key']) # RADIUS authentication port if conf.exists(['port']): - radius['port'] = conf.return_value(['port']) + server_cfg['port'] = conf.return_value(['port']) # RADIUS session timeout if conf.exists(['timeout']): - radius['timeout'] = conf.return_value(['timeout']) + server_cfg['timeout'] = conf.return_value(['timeout']) # Append individual RADIUS server configuration to global server list - radius['server'].append(radius) + radius['server'].append(server_cfg) return radius -- cgit v1.2.3