bugfix for handling match=strict in eos_config

Resolves an issue where match=strict would act like match=exact when
evaluating the configuration
pull/18777/head
Peter Sprygada 9 years ago committed by Matt Clay
parent 7cd3793128
commit 761724f5c3

@ -165,9 +165,6 @@ def build_candidate(lines, parents, config, strategy):
candidate = list() candidate = list()
if strategy == 'strict': if strategy == 'strict':
if len(lines) != len(config):
candidate = list(lines)
else:
for index, cmd in enumerate(lines): for index, cmd in enumerate(lines):
try: try:
if cmd != config[index]: if cmd != config[index]:

Loading…
Cancel
Save