From 8032f4bb72db064d2b3f6f0954f6674091822cc4 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 2 Sep 2021 16:05:40 +0200 Subject: login: radius: T3192: drop workaround required by get_config_dict() The workaround is no longer required, as the issue was resolved in get_config_dict() so if it is a node, a list is always returned. --- src/conf_mode/system-login.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/conf_mode/system-login.py') diff --git a/src/conf_mode/system-login.py b/src/conf_mode/system-login.py index f0b92aea8..93696e653 100755 --- a/src/conf_mode/system-login.py +++ b/src/conf_mode/system-login.py @@ -80,12 +80,6 @@ def get_config(config=None): login['radius']['server'][server] = dict_merge(default_values, login['radius']['server'][server]) - # XXX: for a yet unknown reason when we only have one source-address - # get_config_dict() will show a string over a string - if 'radius' in login and 'source_address' in login['radius']: - if isinstance(login['radius']['source_address'], str): - login['radius']['source_address'] = [login['radius']['source_address']] - # create a list of all users, cli and users all_users = list(set(local_users + cli_users)) # We will remove any normal users that dos not exist in the current -- cgit v1.2.3