Skip to content

Commit bf6faa6

Browse files
committed
Address comments
1 parent d1f43db commit bf6faa6

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

crm/main.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ def show_thresholds(self, resource):
5656
else:
5757
click.echo('\nError! Could not get CRM configuration.')
5858

59-
click.echo('\n')
59+
click.echo()
6060
click.echo(tabulate(data, headers=header, tablefmt="simple", missingval=""))
61-
click.echo('\n')
61+
click.echo()
6262

6363
def show_resources(self, resource):
6464
"""
@@ -82,9 +82,9 @@ def show_resources(self, resource):
8282
else:
8383
click.echo('\nCRM counters are not ready. They would be populated after the polling interval.')
8484

85-
click.echo('\n')
85+
click.echo()
8686
click.echo(tabulate(data, headers=header, tablefmt="simple", missingval=""))
87-
click.echo('\n')
87+
click.echo()
8888

8989
def show_acl_resources(self):
9090
"""
@@ -108,9 +108,9 @@ def show_acl_resources(self):
108108
crm_stats['crm_stats_' + res + "_available"]
109109
])
110110

111-
click.echo('\n')
111+
click.echo()
112112
click.echo(tabulate(data, headers=header, tablefmt="simple", missingval=""))
113-
click.echo('\n')
113+
click.echo()
114114

115115
def show_acl_table_resources(self):
116116
"""
@@ -136,9 +136,9 @@ def show_acl_table_resources(self):
136136
if ('crm_stats_' + res + '_used' in crm_stats) and ('crm_stats_' + res + '_available' in crm_stats):
137137
data.append([id, res, crm_stats['crm_stats_' + res + '_used'], crm_stats['crm_stats_' + res + '_available']])
138138

139-
click.echo('\n')
139+
click.echo()
140140
click.echo(tabulate(data, headers=header, tablefmt="simple", missingval=""))
141-
click.echo('\n')
141+
click.echo()
142142

143143

144144
@click.group()

pfc/main.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ def showPfcAsym(interface):
4545

4646
sorted_table = natsorted(table)
4747

48-
click.echo('\n')
48+
click.echo()
4949
click.echo(tabulate(sorted_table, headers=header, tablefmt="simple", missingval=""))
50-
click.echo('\n')
50+
click.echo()
5151

5252
def configPfcPrio(status, interface, priority):
5353
configdb = swsssdk.ConfigDBConnector()
@@ -110,9 +110,9 @@ def showPfcPrio(interface):
110110
table.append([intf, entry.get('pfc_enable', 'N/A')])
111111

112112
sorted_table = natsorted(table)
113-
click.echo('\n')
113+
click.echo()
114114
click.echo(tabulate(sorted_table, headers=header, tablefmt="simple", missingval=""))
115-
click.echo('\n')
115+
click.echo()
116116

117117
@click.group()
118118
def cli():

show/main.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2940,7 +2940,7 @@ def neighbors():
29402940
r = ["", ip, mac, intf]
29412941
table.append(r)
29422942
click.echo(tabulate(table, header))
2943-
click.echo("\n")
2943+
click.echo()
29442944

29452945
if not bool(vnet_intfs):
29462946
click.echo(tabulate(table, header))
@@ -2973,7 +2973,7 @@ def all():
29732973

29742974
click.echo(tabulate(table, header))
29752975

2976-
click.echo("\n")
2976+
click.echo()
29772977

29782978
header = ['vnet name', 'prefix', 'endpoint', 'mac address', 'vni']
29792979

0 commit comments

Comments
 (0)