mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
Fix bug where modify_body in modify was not being set to json
This commit is contained in:
parent
0effe55c31
commit
d30282ef25
3 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
class Version
|
class Version
|
||||||
@version = '0.2.11'
|
@version = '0.2.12'
|
||||||
|
|
||||||
def self.get
|
def self.get
|
||||||
@version
|
@version
|
||||||
|
|
|
||||||
|
|
@ -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'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue