bugfix for ios_config module

This commit address a bug in the ios_config module when using the
match: strict argument.  When the argument is used, the module will
compare the configuration block same as match: exact which is not the
intended behavior.  This commit updates the behavior to propertly handle
the strict argument.
This commit is contained in:
Peter Sprygada 2016-03-06 23:21:32 -05:00 committed by Matt Clay
parent 761724f5c3
commit ba41260ae0

View file

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