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

Empty parameters list passes 'make lint', fails on import #9

Open
LindsayHill opened this issue Nov 24, 2016 · 0 comments
Open

Empty parameters list passes 'make lint', fails on import #9

LindsayHill opened this issue Nov 24, 2016 · 0 comments

Comments

@LindsayHill
Copy link
Contributor

If I have an action.yaml file like this:

name: action
runner_type: run-python
description: List Some Stuff
enabled: true
entry_point: action_script.py
parameters:

Then it will pass make lint, but it will fail when registering with an error similar to this:

Traceback (most recent call last):
  File "/usr/bin/st2-register-content", line 22, in <module>
    sys.exit(content_loader.main(sys.argv[1:]))
  File "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2common/content/bootstrap.py", line 354, in main
    register_content()
  File "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2common/content/bootstrap.py", line 326, in register_content
    register_actions()
  File "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2common/content/bootstrap.py", line 195, in register_actions
    raise e
AttributeError: 'NoneType' object has no attribute 'iteritems'

It would be better if this error was detected when running make lint, rather than at registration time.

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