Skip to content

Commit

Permalink
[sonic-cli-gen]
Browse files Browse the repository at this point in the history
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
  • Loading branch information
stepanblyschak committed May 14, 2021
1 parent 65b125c commit 134b21e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sonic-utilities-data/templates/sonic-cli-gen/show.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ def {{ name }}(db):
body = []

table = db.cfgdb.get_table("{{ table.name }}")
for key, entry in natsort.natsorted(table).items():
for key in natsort.natsorted(table):
entry = table[key]
if not isinstance(key, tuple):
key = (key,)

Expand Down

0 comments on commit 134b21e

Please sign in to comment.