2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-12 18:59:06 +00:00

Clean out dead code

There is some dead and commented code to be cleaned out.
This commit is contained in:
Jarrod Johnson 2018-11-06 15:30:18 -05:00
parent 96df7871cb
commit 0aa0289b06

View File

@ -28,7 +28,6 @@ if path.startswith('/opt'):
import confluent.client as client
tabformat = '{0:>15}|{1:>15}|{2:>15}|{3:>36}|{4:>17}|{5:>12}|{6:>48}'
columns = ['Node', 'Model', 'Serial', 'UUID', 'Mac Address', 'Type',
'Current IP Addresses']
@ -50,7 +49,6 @@ def print_disco(options, session, currmac, outhandler):
csv.writer(sys.stdout).writerow(record)
else:
outhandler.add_row(record)
#print(tabformat.format(*record))
def process_header(header):
@ -188,8 +186,6 @@ def list_discovery(options, session):
csv.writer(sys.stdout).writerow(columns)
else:
outhandler = client.Tabulator(columns)
#print(tabformat.format(*columns))
#print(tabformat.format(*delimit))
for mac in list_matching_macs(options, session):
print_disco(options, session, mac, outhandler)
print(outhandler.get_table())