Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python traceback when trying to execute salt commands. #1

Open
jknightstreamme opened this issue Dec 19, 2017 · 0 comments
Open

Python traceback when trying to execute salt commands. #1

jknightstreamme opened this issue Dec 19, 2017 · 0 comments

Comments

@jknightstreamme
Copy link

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()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant