molten icon indicating copy to clipboard operation
molten copied to clipboard

Unable to send argument that contains space

Open Vuader opened this issue 5 years ago • 0 comments

Issue:

Some Arguments require spaces. For example, on cli one would run:

salt '*' net.cli 'show version'

When entering 'show version' in the "arguments" field on /molten/execute, the space character is used as a delimiter, and the string is expanded into two arguments:

arg: ["'show", "version'"]
client: "local"
expr_form: "glob"
fun: "net.cli"
kwarg: {}
tgt: "*"

Even though the argument string is contained in single quotes. This results in "invalid command" from the proxy minion.

Expected behaviour: Strings contained in quotes are send through as single arguments in quotes:

arg: ["'show version'"]

Vuader avatar Oct 25 '19 08:10 Vuader