From e2d55d86e4b33aea02d7abec4b8fb278e4203b9d Mon Sep 17 00:00:00 2001 From: Gary Rybak Date: Tue, 14 Jun 2016 10:09:23 -0600 Subject: [PATCH] Move call to filter_exit out of command execution block to prevent setting 'changed' on a command list that is completely filtered (empty). --- lib/ansible/modules/network/eos/eos_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/eos/eos_template.py b/lib/ansible/modules/network/eos/eos_template.py index 80a152e7f1c..61e7b8fca4e 100644 --- a/lib/ansible/modules/network/eos/eos_template.py +++ b/lib/ansible/modules/network/eos/eos_template.py @@ -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)