When I run the following commands:
salt '*' cmd.run 'dir' runas=myuser password=123456
salt '*' cmd.run 'dir' runas=myuser password='123456'
salt '*' cmd.run 'dir' runas=myuser password="123456"
salt '*' cmd.run 'dir' runas=myuser password='''123456'''
The output is:
win10:
Passed invalid arguments to cmd.run: Objects of type 'int' can not be converted to Unicode.
Salt Version:
Salt: 2017.7.0
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: 2.4.2
docker-py: Not Installed
gitdb: 0.6.4
gitpython: 1.0.1
ioflo: Not Installed
Jinja2: 2.8
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: Not Installed
Mako: 1.0.3
msgpack-pure: Not Installed
msgpack-python: 0.4.6
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 2.7.12 (default, Nov 19 2016, 06:48:10)
python-gnupg: Not Installed
PyYAML: 3.11
PyZMQ: 15.2.0
RAET: Not Installed
smmap: 0.9.0
timelib: Not Installed
Tornado: 4.2.1
ZMQ: 4.1.4
System Versions:
dist: Ubuntu 16.04 xenial
locale: UTF-8
machine: x86_64
release: 4.4.0-83-generic
system: Linux
version: Ubuntu 16.04 xenial
The minion is win10 x64.
Could anyone help?
The command lines assumes a number is a int or a float if only digits. Try abc123 for the password or even better a password generator,
Yeah, this is something that the cli renderer does, because usually numbers need to be ints or floats.
It would be easier to set the password to something with a letter in it, but we should add a str(password) in salt.modules.cmdmod i guess.
I am going to mark this as a low priority issue.
Thanks,
Daniel
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.