Move call to filter_exit out of command execution block

to prevent setting 'changed' on a command list that is
completely filtered (empty).
reviewable/pr18780/r1
Gary Rybak 10 years ago
parent 0802569af9
commit dc21c211e3

@ -192,8 +192,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…
Cancel
Save