Merge pull request #33 from codingo/strip-fix

Strip fix
This commit is contained in:
Michael Skelton
2019-04-01 20:42:18 +10:00
committed by GitHub

View File

@@ -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.strip())
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)