From 64c827fab06de0d2c9bc1530651e590a66507c0d Mon Sep 17 00:00:00 2001 From: Jack Stone Date: Mon, 15 Apr 2019 10:51:06 +0100 Subject: [PATCH] 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 --- lib/beaker/hypervisor/vmpooler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/beaker/hypervisor/vmpooler.rb b/lib/beaker/hypervisor/vmpooler.rb index acb0dce..c7c35ff 100644 --- a/lib/beaker/hypervisor/vmpooler.rb +++ b/lib/beaker/hypervisor/vmpooler.rb @@ -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)