diff options
author | Gary Rybak <grybak@arista.com> | 2016-06-14 10:09:23 -0600 |
---|---|---|
committer | Gary Rybak <grybak@arista.com> | 2016-06-14 10:09:23 -0600 |
commit | dc21c211e36edaee95657c31baca0878e0b91ada (patch) | |
tree | a85ad1566157de94b6da1cdcce56635a08dbea76 | |
parent | 0802569af99ab08ccacd149e06cffe7f8dac872a (diff) | |
download | ansible-modules-core-dc21c211e36edaee95657c31baca0878e0b91ada.tar.gz |
Move call to filter_exit out of command execution block
to prevent setting 'changed' on a command list that is
completely filtered (empty).
-rw-r--r-- | network/eos/eos_template.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/network/eos/eos_template.py b/network/eos/eos_template.py index 550d3bad..924268dc 100644 --- a/network/eos/eos_template.py +++ b/network/eos/eos_template.py @@ -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) |