Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix for httpclient s/body/http_body/

  • Loading branch information...
commit 791a3f0f47f2c0687304048024d67bc37e2134af 1 parent 9de6bc4
@zenchild zenchild authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/zenoss/jsonapi.rb
  2. +1 −1  lib/zenoss/restapi.rb
View
2  lib/zenoss/jsonapi.rb
@@ -62,7 +62,7 @@ def parse_json(resp)
raise ZenossError, "Bad HTTP Response #{resp.status}: Cound not make JSON call"
end
- json = JSON.load(resp.body.content)
+ json = JSON.load(resp.http_body.content)
# Check for JSON success. There are some exceptions where this doesn't make sense:
# 1. Sometimes the 'success' key does not exist like in EventsRouter#query
# 2. When json['result'] is not a Hash like a return from ReportRouter#get_tree
View
2  lib/zenoss/restapi.rb
@@ -72,7 +72,7 @@ def parse_rest(resp)
raise ZenossError, "Bad HTTP Response #{resp.status}: Cound not make REST call"
end
- resp.body.content
+ resp.http_body.content
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.