2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-16 18:49:04 +00:00

Fix to match all critera than any.

It was matching *any* of the criteria, it needed to match all.
This commit is contained in:
Jarrod Johnson 2017-10-02 17:04:38 -04:00
parent 3606aab3f0
commit 526eb45969

View File

@ -246,8 +246,10 @@ def list_info(parms, requestedparameter):
mk = mk.replace('by-', '')
if mk not in info:
continue
if parms['by-' + mk] == info[mk] and requestedparameter in info:
results.add(info[requestedparameter])
if parms['by-' + mk] != info[mk] or requestedparameter not in info:
break
else:
results.add(info[requestedparameter])
return [msg.ChildCollection(x + suffix) for x in util.natural_sort(results)]
def _handle_neighbor_query(pathcomponents, configmanager, list_switches):