2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 19:10:10 +00:00

Have nodediscover list filter by -n

It is a reasonable expectation and useful feature to provide.
This commit is contained in:
Jarrod Johnson 2020-03-27 12:14:41 -04:00
parent 3429173c27
commit d33365195b

View File

@ -241,6 +241,8 @@ def list_matching_macs(options, session, node=None):
path = '/discovery/'
if node:
path += 'by-node/{0}/'.format(node)
elif options.node:
path += 'by-node/{0}/'.format(options.node)
if options.model:
path += 'by-model/{0}/'.format(options.model)
if options.serial: