Skip to content

Instantly share code, notes, and snippets.

@dginther
Last active December 19, 2015 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dginther/5954357 to your computer and use it in GitHub Desktop.
Save dginther/5954357 to your computer and use it in GitHub Desktop.
----------
State: - cmd
Name: /tmp/SumoCollector_linux_amd64_19_47-5.sh
Function: script
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/salt/state.py", line 1238, in call
*cdata['args'], **cdata['kwargs'])
File "/usr/lib/pymodules/python2.7/salt/states/cmd.py", line 630, in script
run_check_cmd_kwargs, onlyif, unless, group
File "/usr/lib/pymodules/python2.7/salt/states/cmd.py", line 228, in _run_check
if __salt__['cmd.retcode'](unless, **cmd_kwargs) == 0:
File "/usr/lib/pymodules/python2.7/salt/modules/cmdmod.py", line 655, in retcode
timeout=timeout)['retcode']
File "/usr/lib/pymodules/python2.7/salt/modules/cmdmod.py", line 317, in _run
proc = salt.utils.timed_subprocess.TimedProc(cmd, **kwargs)
File "/usr/lib/pymodules/python2.7/salt/utils/timed_subprocess.py", line 20, in __init__
self.process = subprocess.Popen(args, stdin=subprocess.PIPE, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
TypeError: coercing to Unicode: need string or buffer, dict found
SumoCollector_linux_amd64_19_47-5.sh:
cmd.script:
- name: /tmp/SumoCollector_linux_amd64_19_47-5.sh
- args: -q
- cwd: /tmp
- unless:
- file.exists:
- name: /opt/SumoCollector
- require:
- file: /tmp/SumoCollector_linux_amd64_19_47-5.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment