mirror of
https://github.com/puppetlabs/beaker-vmpooler.git
synced 2026-01-26 11:08:40 -05:00
Fix the API URL for adding disks
The pooling_api variable already contains /api/v1 so remove this from the disk API URL so we don't end up with it twice
This commit is contained in:
parent
15acdf0d7f
commit
64c827fab0
1 changed files with 1 additions and 1 deletions
|
|
@ -274,7 +274,7 @@ module Beaker
|
||||||
end
|
end
|
||||||
|
|
||||||
begin
|
begin
|
||||||
uri = URI.parse(@options[:pooling_api] + '/api/v1/vm/' + hostname + '/disk/' + disk_size.to_s)
|
uri = URI.parse(@options[:pooling_api] + '/vm/' + hostname + '/disk/' + disk_size.to_s)
|
||||||
|
|
||||||
http = Net::HTTP.new(uri.host, uri.port)
|
http = Net::HTTP.new(uri.host, uri.port)
|
||||||
request = Net::HTTP::Post.new(uri.request_uri)
|
request = Net::HTTP::Post.new(uri.request_uri)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue