Skip to content

Commit

Permalink
pyYAML treats double-quoted strings specially.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbenden committed Aug 27, 2018
1 parent b7035b6 commit 0cfc971
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/deployer/plugins/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def execute(self, context):
result = 'success'

cmd = render(self.cmd, **context.variables.last())
argv = shlex.split(cmd, False, True)
argv = shlex.split(cmd, False, False)
LOGGER.debug("Running: %r" % argv)

try:
Expand Down
2 changes: 1 addition & 1 deletion tests/plugins/test_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def test_plugin_command_on_unix_bad(caplog, reactor): # noqa: no-cover
def test_plugin_command_on_win(caplog, reactor): # noqa: no-cover
stream = StringIO('''
- name: test1
command: "\Windows\System32\cmd.exe /c echo Hello world"
command: \'\Windows\System32\cmd.exe /c echo Hello world\'
''')
document = loader.ordered_load(stream)

Expand Down

0 comments on commit 0cfc971

Please sign in to comment.