Closed johtso closed 10 years ago
That's very strange! Which version of salt are you using? It appears that the argument is being parsed as an arg, not a kwarg, and so it's trying to use it for the saltenv argument.
Thanks for the report, we'll investigate.
Happens with the latest version of salt 2014.1.0-4018-g9d82e8c
I have a feeling this is a troublesome spot: https://github.com/saltstack/salt/blob/develop/salt/client/ssh/__init__.py#L646
It seems that this is a general issue with the salt-ssh
cli. There is no parsing of kwargs.
Another example, test=True
was completely ignored when executing pkg.install
:
❯ salt-ssh 'baobab' pkg.install fortune test=True
baobab:
----------
fortune-mod:
----------
new:
1:1.99.1-4
old:
fortunes-min:
----------
new:
1:1.99.1-4
old:
librecode0:
----------
new:
3.6-18
old:
Ya, we're definitely not handling those kwargs right. Thanks for the update.
salt-ssh
then hangs and has to be stopped with a keyboard interrupt.