Move call to filter_exit out of command execution block to prevent setting 'changed' on a command list that is completely filtered (empty).
This commit is contained in:
parent
b0135fadea
commit
e2d55d86e4
1 changed files with 1 additions and 1 deletions
|
@ -191,8 +191,8 @@ def main():
|
|||
else:
|
||||
commands = str(candidate).split('\n')
|
||||
|
||||
commands = filter_exit(commands)
|
||||
if commands:
|
||||
commands = filter_exit(commands)
|
||||
if not module.check_mode:
|
||||
commands = [str(c).strip() for c in commands]
|
||||
response = module.configure(commands, replace=replace)
|
||||
|
|
Loading…
Reference in a new issue