Merge pull request #15 from jwjs36987/fix_disk_url

(maint) Fix the API URL for adding disks
This commit is contained in:
mattkirby 2019-04-22 09:29:17 -07:00 committed by GitHub
commit b463b50cbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)