Fix bug where modify_body in modify was not being set to json

This commit is contained in:
Brian Cain 2015-10-14 17:27:56 -07:00
parent 0effe55c31
commit d30282ef25
3 changed files with 4 additions and 3 deletions

View file

@ -64,8 +64,9 @@ class Pooler
response = conn.put do |req| response = conn.put do |req|
req.url "/vm/#{hostname}" req.url "/vm/#{hostname}"
req.body = modify_body req.body = modify_body.to_json
end end
res_body = JSON.parse(response.body) res_body = JSON.parse(response.body)
res_body res_body
end end

View file

@ -1,6 +1,6 @@
class Version class Version
@version = '0.2.11' @version = '0.2.12'
def self.get def self.get
@version @version

View file

@ -1,6 +1,6 @@
Gem::Specification.new do |s| Gem::Specification.new do |s|
s.name = 'vmfloaty' s.name = 'vmfloaty'
s.version = '0.2.11' s.version = '0.2.12'
s.authors = ['Brian Cain'] s.authors = ['Brian Cain']
s.email = ['brian.cain@puppetlabs.com'] s.email = ['brian.cain@puppetlabs.com']
s.license = 'Apache' s.license = 'Apache'