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

Add tags support in trigger API #2000

Merged
merged 6 commits into from
Sep 21, 2015
Merged

Add tags support in trigger API #2000

merged 6 commits into from
Sep 21, 2015

Conversation

tdeckers
Copy link
Contributor

When retrieving triggers using st2 trigger get, no tags where shown even though they were define in the sensor yaml file. With these changes tags for triggers are properly stored when registering sensors.

@dzimine
Copy link

dzimine commented Sep 20, 2015

Tom thanks for the patch! once travis is happy someone will take a look. We are in prep for a major release so if response is some what delayed, thanks for patience. Cheers, DZ.

@@ -313,13 +314,16 @@ def _add_trigger_models(trigger_type):
payload_schema = trigger_type['payload_schema'] if 'payload_schema' in trigger_type else {}
parameters_schema = trigger_type['parameters_schema'] \
if 'parameters_schema' in trigger_type else {}
tags = trigger_type['tags'] \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could also do tags = trigger_type.get('tags', {}) :)

@Kami
Copy link
Member

Kami commented Sep 20, 2015

Thanks.

LGTM.

Kami added a commit that referenced this pull request Sep 21, 2015
Add tags support in trigger API
@Kami Kami merged commit eda1c4a into StackStorm:master Sep 21, 2015
@Kami
Copy link
Member

Kami commented Sep 21, 2015

Added some tests in deec8f4.

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

Successfully merging this pull request may close these issues.

3 participants