From 6dd9a2293a462321f902059e9b0d4c205d03e2cd Mon Sep 17 00:00:00 2001 From: Sajeeb Lohani Date: Mon, 1 Apr 2019 21:27:34 +1100 Subject: [PATCH 1/2] Removed command strip --- Interlace/lib/core/input.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Interlace/lib/core/input.py b/Interlace/lib/core/input.py index 3636a21..1421f40 100644 --- a/Interlace/lib/core/input.py +++ b/Interlace/lib/core/input.py @@ -184,7 +184,7 @@ class InputHelper(object): commands.add(arguments.command) else: for command in arguments.command_list: - commands.add(command.strip()) + commands.add(command) final_commands = InputHelper._replace_variable_for_commands(commands, "_target_", targets) final_commands = InputHelper._replace_variable_for_commands(final_commands, "_host_", targets) From c4a26d0a7d52093d7855ce752378dcb3682b69fa Mon Sep 17 00:00:00 2001 From: ProDigySML Date: Mon, 1 Apr 2019 03:38:43 -0700 Subject: [PATCH 2/2] Added in trailing new line removal now --- Interlace/lib/core/input.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Interlace/lib/core/input.py b/Interlace/lib/core/input.py index 1421f40..73d75bd 100644 --- a/Interlace/lib/core/input.py +++ b/Interlace/lib/core/input.py @@ -181,10 +181,10 @@ class InputHelper(object): targets -= exclusions if arguments.command: - commands.add(arguments.command) + commands.add(arguments.command.rstrip('\n')) else: for command in arguments.command_list: - commands.add(command) + commands.add(command.rstrip('\n')) final_commands = InputHelper._replace_variable_for_commands(commands, "_target_", targets) final_commands = InputHelper._replace_variable_for_commands(final_commands, "_host_", targets)