Skip to content

Commit

Permalink
Fix python3 issue in ecnconfig (sonic-net#1286)
Browse files Browse the repository at this point in the history
  • Loading branch information
rck-innovium authored Dec 3, 2020
1 parent 3749f5e commit fab84fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ecnconfig
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ class EcnQ(object):
port_table = self.config_db.get_table(DEVICE_NEIGHBOR_TABLE_NAME)
self.ports_key = port_table.keys()

self.ports_key.sort(key = lambda k: int(k[8:]))
self.ports_key = sorted(self.ports_key, key = lambda k: int(k[8:]))

def set(self, enable):
if os.geteuid() != 0:
Expand Down

0 comments on commit fab84fb

Please sign in to comment.