django-saltapi
django-saltapi copied to clipboard
Arguments gets mangled
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.
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"']}]
See saltstack/salt-ui#17, saltstack/salt-ui#39 and saltstack/salt#2956.
See saltstack/salt#3965 for a proposed solution.