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

Support --register-fail-on-failure in st2ctl #2738

Merged
merged 2 commits into from
Jun 9, 2016

Conversation

codyaray
Copy link
Contributor

@codyaray codyaray commented Jun 9, 2016

The --register-fail-on-failure option that I [learned about yesterday|https://stackstorm-community.slack.com/archives/community/p1465382685000395] is pretty useful. We should expose this option through st2ctl reload.

Our content management story currently deploys packs with ansible and triggers st2ctl reload --register-all (and in some playbooks --register-setup-virtualenvs as well). So right now it fails silently if the content can't be loaded. Would be nice if we could just pass this flag through directly so it returns the error to ansible to display.

Or you can say, no, just use the st2-register-content script directly for more flags. That's fine too. :)

The `--register-fail-on-failure` option that I [learned about yesterday|https://stackstorm-community.slack.com/archives/community/p1465382685000395] is pretty useful. We should expose this option through `st2ctl reload`.

Our content management story currently deploys packs with ansible and triggers `st2ctl reload --register-all` (and in some playbooks `--register-setup-virtualenvs` as well). So right now it fails silently if the content can't be loaded. Would be nice if we could just pass this flag through directly so it returns the error to ansible to display. 

Or you can say, no, just use the `st2-register-content` script directly for more flags. That's fine too. :)
@Kami
Copy link
Member

Kami commented Jun 9, 2016

Thanks - I agree that this functionality is useful.

Please make sure to also update st2ctl in st2common/bin/ directory.

@lakshmi-kannan
Copy link
Contributor

lgtm.

@lakshmi-kannan lakshmi-kannan merged commit 3ae0325 into StackStorm:master Jun 9, 2016
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