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

[rackspace|identity] Better checking around hash/array responses. #1009

Merged

Conversation

bradgignac
Copy link
Member

Previously, the Identity API request methods simply checked for the existence of a key in the response to determine whether a single object or an array was returned. Using type checking should be a less fragile approach. Tests still pass.

/cc @brianhartsock

Instead of simply checking for the existence of a key in Identity API
responses, this checks the type of the expected response. This should
be a less fragile way of handling hash/array responses.
@brianhartsock
Copy link
Member

LGTM

brianhartsock added a commit that referenced this pull request Jun 27, 2012
…e_checks

[rackspace|identity] Better checking around hash/array responses.
@brianhartsock brianhartsock merged commit ff80609 into fog:master Jun 27, 2012
@geemus
Copy link
Member

geemus commented Jun 27, 2012

Thanks guys!

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.

None yet

3 participants