Python traceback when trying to execute salt commands.
jknightstreamme opened this issue · comments
Any time I try to execute a salt command like st2 run salt.runner_manage.up
, I get the following traceback. It seems that something is not being handled correctly in the sanitize_payload
function.
Traceback (most recent call last):
File "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2common/runners/python_action_wrapper.py", line 275, in <module>
obj.run()
File "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2common/runners/python_action_wrapper.py", line 163, in run
output = action.run(**self._parameters)
File "/opt/stackstorm/packs/salt/actions/runner.py", line 26, in run
self.generate_package('runner', cmd=_cmd)
File "/opt/stackstorm/packs/salt/actions/lib/base.py", line 62, in generate_package
clean_payload = sanitize_payload(('username', 'password'), self.data)
File "/opt/stackstorm/packs/salt/actions/lib/utils.py", line 69, in sanitize_payload
map(lambda k: data.update({k: "*" * len(payload[k])}), keys_to_sanitize)
File "/opt/stackstorm/packs/salt/actions/lib/utils.py", line 69, in <lambda>
map(lambda k: data.update({k: "*" * len(payload[k])}), keys_to_sanitize)
TypeError: object of type 'NoneType' has no len()