Skip to content

Handle JSON event query responses that contain a nil result field#22

Closed
frozenbubbleboy wants to merge 2 commits intoRubyOpenSource:masterfrom
frozenbubbleboy:handle_nil_result
Closed

Handle JSON event query responses that contain a nil result field#22
frozenbubbleboy wants to merge 2 commits intoRubyOpenSource:masterfrom
frozenbubbleboy:handle_nil_result

Conversation

@frozenbubbleboy
Copy link
Copy Markdown

No description provided.

Comment thread lib/zenoss/jsonapi.rb Outdated
# Handle the situation where the 'result' key in the JSON response does not
# point to a hash, but instead is nil.
# This has been seen in the wild on an installation of Zenoss 4.2.5
if(json['result'].nil?
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Extra (?

@frozenbubbleboy
Copy link
Copy Markdown
Author

Yeah, sorry about that. I've removed the extra (.

@bjmllr
Copy link
Copy Markdown
Member

bjmllr commented May 11, 2016

The Travis failures were because we needed to update a couple things. I've done this in #23, can you rebase on to master and try pushing again when you get a chance?

@bjmllr
Copy link
Copy Markdown
Member

bjmllr commented May 19, 2016

Based on our discussion, it sounds like this isn't absolutely needed. This also might be a breaking change for someone who handles these nil responses in their app. I'll close this for now.

@bjmllr bjmllr closed this May 19, 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.

2 participants