Move call to filter_exit out of command execution block to prevent setting 'changed' on a command list that is completely filtered (empty).

pull/18777/head
Gary Rybak 8 years ago committed by Matt Clay
parent b0135fadea
commit e2d55d86e4

@ -191,8 +191,8 @@ def main():
else:
commands = str(candidate).split('\n')
if commands:
commands = filter_exit(commands)
if commands:
if not module.check_mode:
commands = [str(c).strip() for c in commands]
response = module.configure(commands, replace=replace)

Loading…
Cancel
Save