Skip to content

Commit

Permalink
[JIRA SONIC-8374] TACACS+ Authentication priorities
Browse files Browse the repository at this point in the history
* Fixed the sorting of TACACS+ servers priorities

Change-Id: I5ac4be715bfef333ccb2d23f37fd972112974774
  • Loading branch information
a-barboza committed Aug 21, 2019
1 parent 0ac4785 commit 59763b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/image_config/hostcfgd/hostcfgd
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class AaaCfg(object):
server['ip'] = addr
server.update(self.tacplus_servers[addr])
servers_conf.append(server)
sorted(servers_conf, key=lambda t: t['priority'], reverse=True)
servers_conf = sorted(servers_conf, key=lambda t: t['priority'], reverse=True)

template_file = os.path.abspath(PAM_AUTH_CONF_TEMPLATE)
env = jinja2.Environment(loader=jinja2.FileSystemLoader('/'), trim_blocks=True)
Expand Down

0 comments on commit 59763b0

Please sign in to comment.