Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

All client errors should derive from AnsibleTowerClient::ClientError #71

Merged
merged 1 commit into from
Feb 16, 2017

Conversation

bdunne
Copy link
Contributor

@bdunne bdunne commented Feb 15, 2017

Fixes #70

@bdunne
Copy link
Contributor Author

bdunne commented Feb 15, 2017

@syncrou @carbonin Please review

@miq-bot
Copy link
Collaborator

miq-bot commented Feb 15, 2017

Checked commit bdunne@92c1814 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
4 files checked, 1 offense detected

lib/ansible_tower_client/exception.rb

@syncrou
Copy link
Contributor

syncrou commented Feb 15, 2017

@bdunne - It looks good - any thoughts on the second request in #70 in regards to wrapping the behavior into a credentials_valid? method? Or modifying connection.api.verify_credentials

@bdunne
Copy link
Contributor Author

bdunne commented Feb 15, 2017

@syncrou I think the second part was just an example

@gmcculloug
Copy link
Contributor

@bdunne Does this require additional changes in the ManageIQ/manageiq repo to address existing Faraday rescues like: app/models/manageiq/providers/ansible_tower/automation_manager/job.rb#L37

@bdunne
Copy link
Contributor Author

bdunne commented Feb 16, 2017

@gmcculloug Yes, it does. I'll make a followup PR to ManageIQ.

@gmcculloug gmcculloug self-assigned this Feb 16, 2017
@gmcculloug gmcculloug merged commit b0b0959 into ansible:master Feb 16, 2017
@bdunne bdunne deleted the error_subclassing branch February 17, 2017 17:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants