From d30282ef25c446dfd3f2275f7d79a6ff9958de05 Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Wed, 14 Oct 2015 17:27:56 -0700 Subject: [PATCH] Fix bug where modify_body in modify was not being set to json --- lib/vmfloaty/pooler.rb | 3 ++- lib/vmfloaty/version.rb | 2 +- vmfloaty.gemspec | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/vmfloaty/pooler.rb b/lib/vmfloaty/pooler.rb index 15725dd..7efa321 100644 --- a/lib/vmfloaty/pooler.rb +++ b/lib/vmfloaty/pooler.rb @@ -64,8 +64,9 @@ class Pooler response = conn.put do |req| req.url "/vm/#{hostname}" - req.body = modify_body + req.body = modify_body.to_json end + res_body = JSON.parse(response.body) res_body end diff --git a/lib/vmfloaty/version.rb b/lib/vmfloaty/version.rb index 42c3842..4f25ce3 100644 --- a/lib/vmfloaty/version.rb +++ b/lib/vmfloaty/version.rb @@ -1,6 +1,6 @@ class Version - @version = '0.2.11' + @version = '0.2.12' def self.get @version diff --git a/vmfloaty.gemspec b/vmfloaty.gemspec index 2dd8030..5f8da94 100644 --- a/vmfloaty.gemspec +++ b/vmfloaty.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'vmfloaty' - s.version = '0.2.11' + s.version = '0.2.12' s.authors = ['Brian Cain'] s.email = ['brian.cain@puppetlabs.com'] s.license = 'Apache'