diff --git a/test/data/check-snmp-agent-configs.py b/test/data/check-snmp-agent-configs.py index 53c2c751fc7625ea14636bbf67d03d09453b7162..90da11fa93459c0cd9eba5c33298d626f9eaa05b 100644 --- a/test/data/check-snmp-agent-configs.py +++ b/test/data/check-snmp-agent-configs.py @@ -9,15 +9,11 @@ COMMUNITY_STRING = '0pBiFbD' def write_row_csv(columns, header=False): - if header: - columns = [' '] + columns print(','.join(columns)) def write_row_md(columns, header=False): delimiter = '||' if header else '|' - if header: - columns = [' '] + columns print(delimiter + delimiter.join(columns) + delimiter) @@ -85,9 +81,9 @@ def client_addresses(netconf_string, community): yield ipaddress.ip_network(s, strict=False) -columns = [''] + COLLECTORS +columns = [' '] + COLLECTORS write_row(columns, header=True) -columns = [''] + [ADDRESS[c] for c in COLLECTORS] +columns = [' '] + [ADDRESS[c] for c in COLLECTORS] write_row(columns, header=True)