mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
shell tests: strip whitespace from shell return
This commit is contained in:
parent
c94dfb870f
commit
2f1c0cf809
@ -57,7 +57,7 @@ class EnabledTest(integration.ModuleCase):
|
||||
|
||||
try:
|
||||
salt.utils.fopen(state_file, 'w').write(textwrap.dedent('''\
|
||||
{{% set shell_enabled = salt['cmd.run']("{0}") %}}
|
||||
{{% set shell_enabled = salt['cmd.run']("{0}").strip() %}}
|
||||
|
||||
shell_enabled:
|
||||
test.configurable_test_state:
|
||||
|
Loading…
Reference in New Issue
Block a user