Skip to content

Commit

Permalink
[aclshow]: Fix TypeError when no tables installed (sonic-net#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shuotian Cheng authored May 18, 2017
1 parent 70fd4fa commit c3bb0d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/aclshow
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ class AclStat(object):
if verboseflag:
print("ACL Tables found:", len(tables))

if not tables:
return

for table in tables:
table_name = table.split(":")[1]
if self.table_list and not table_name in self.table_list:
Expand Down

0 comments on commit c3bb0d6

Please sign in to comment.