Skip to content

Commit

Permalink
Merge pull request #32588 from alprs/fix-salt_ssh_module_types
Browse files Browse the repository at this point in the history
Fix salt-ssh module function call argument type juggling by JSON encoding them
  • Loading branch information
thatch45 committed Apr 18, 2016
2 parents 5e7edfc + d912f1c commit a6a4274
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions salt/client/ssh/wrapper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ def caller(*args, **kwargs):
The remote execution function
'''
argv = [cmd]
argv.extend([str(arg) for arg in args])
argv.extend(['{0}={1}'.format(key, val) for key, val in six.iteritems(kwargs)])
argv.extend([json.dumps(arg) for arg in args])
argv.extend(['{0}={1}'.format(key, json.dumps(val)) for key, val in six.iteritems(kwargs)])
single = salt.client.ssh.Single(
self.opts,
argv,
Expand Down

0 comments on commit a6a4274

Please sign in to comment.