Skip to content

Commit 0eaaa72

Browse files
committed
Address review comments
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>
1 parent 9b8f365 commit 0eaaa72

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

show/interfaces/portchannel.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ def get_portchannel_names(self):
5858
"""
5959
self.teams = []
6060
team_keys = self.db.keys(self.db.CONFIG_DB, PORT_CHANNEL_CFG_TABLE_PREFIX+"*")
61+
if team_keys is None:
62+
return
6163
for key in team_keys:
6264
team_name = key[len(PORT_CHANNEL_CFG_TABLE_PREFIX):]
6365
if self.multi_asic.skip_display(PORT_CHANNEL_OBJ, team_name) is True:
@@ -155,7 +157,7 @@ def display_summary(self):
155157
output = []
156158
for team_id in natsorted(self.summary):
157159
output.append([team_id, 'PortChannel'+team_id, self.summary[team_id]['protocol'], self.summary[team_id]['ports']])
158-
print tabulate(output, header)
160+
print(tabulate(output, header))
159161

160162
# 'portchannel' subcommand ("show interfaces portchannel")
161163
@click.command()

0 commit comments

Comments
 (0)