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:
Jack Stone 2019-04-15 10:51:06 +01:00
parent 15acdf0d7f
commit 64c827fab0

View file

@ -274,7 +274,7 @@ module Beaker
end
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)
request = Net::HTTP::Post.new(uri.request_uri)