diff --git a/network/eos/eos_template.py b/network/eos/eos_template.py index 550d3bad616..924268dc507 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)