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

Allow create_in_provider to fail #14049

Merged
merged 1 commit into from
Feb 23, 2017

Conversation

bdunne
Copy link
Member

@bdunne bdunne commented Feb 23, 2017

Credentials should already be valid at this point, if not, that is the
problem of the refresh.
We should raise an error if the record is not found in our database

Without the find_by!, the method returns nil and code will blow up later in the process making it hard to figure out what went wrong.

@bdunne
Copy link
Member Author

bdunne commented Feb 23, 2017

@bzwei Please review

cc @mkanoor & @billfitzgerald0120

@gmcculloug
Copy link
Member

@bdunne Please add a test.

Credentials should already be valid at this point, if not, that is the
problem of the refresh.
We should raise an error if the record is not found in our database
@miq-bot
Copy link
Member

miq-bot commented Feb 23, 2017

This pull request is not mergeable. Please rebase and repush.

@miq-bot
Copy link
Member

miq-bot commented Feb 23, 2017

Checked commit bdunne@affb2af with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 0 offenses detected
Everything looks good. 🏆

@gmcculloug gmcculloug merged commit cd3f563 into ManageIQ:master Feb 23, 2017
@gmcculloug gmcculloug added this to the Sprint 55 Ending Feb 27, 2017 milestone Feb 23, 2017
@bdunne bdunne deleted the api_create_failures branch February 23, 2017 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants