Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Unable to send argument that contains space #63

Open
Vuader opened this issue Oct 25, 2019 · 0 comments
Open

Unable to send argument that contains space #63

Vuader opened this issue Oct 25, 2019 · 0 comments

Comments

@Vuader
Copy link

Vuader commented Oct 25, 2019

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'"]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant