Skip to content

Commit

Permalink
Fix show fabric monitor capacity command when the feature is disabled. (
Browse files Browse the repository at this point in the history
  • Loading branch information
jfeng-arista authored Jun 5, 2024
1 parent 6829ded commit 1ebd099
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/fabricstat
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,10 @@ Examples:
stat = FabricCapacity(namespace, table_cnt, threshold)
stat.capacity_print()

click.echo("Monitored fabric capacity threshold: {}".format(threshold[0]))
print_th = ""
if threshold:
print_th = threshold[0]
click.echo("Monitored fabric capacity threshold: {}".format(print_th))
click.echo()
click.echo(tabulate(table_cnt, capacity_header, tablefmt='simple', stralign='right'))
else:
Expand Down

0 comments on commit 1ebd099

Please sign in to comment.