django-saltapi icon indicating copy to clipboard operation
django-saltapi copied to clipboard

Arguments gets mangled

Open holmboe opened this issue 12 years ago • 3 comments

Arguments breaks somewhere before they get to Salt if there are more than one (1) character argument.

Compare these two:

django-saltapi-echo salt a
django-saltapi-echo salt abc

The latter will fail saying that you specified 3 arguments. This might be related to x-www-form-urlencoded encoded input data.

holmboe avatar Mar 07 '13 01:03 holmboe

I noticed that there is no way to pass a phrase as a single argument to test.echo using salt-ui as well. It gets passed in as:

[{u'fun': u'test.echo', u'client': 'local_async', u'tgt': u'*', u'arg': [u'"hej', u'hoo"']}]

holmboe avatar Mar 07 '13 15:03 holmboe

See saltstack/salt-ui#17, saltstack/salt-ui#39 and saltstack/salt#2956.

holmboe avatar Mar 07 '13 15:03 holmboe

See saltstack/salt#3965 for a proposed solution.

holmboe avatar Mar 07 '13 15:03 holmboe