lib/fog/compute/proxmox/requests/delete_server.rb in fog-proxmox-0.5.5 vs lib/fog/compute/proxmox/requests/delete_server.rb in fog-proxmox-0.6.0

- old
+ new

@@ -16,27 +16,24 @@ # You should have received a copy of the GNU General Public License # along with Fog::Proxmox. If not, see <http://www.gnu.org/licenses/>. # frozen_string_literal: true -require 'fog/proxmox/json' - module Fog module Compute class Proxmox # class Real delete_server request class Real def delete_server(path_params, body_params) node = path_params[:node] type = path_params[:type] vmid = path_params[:vmid] - response = request( + request( expects: [200], method: 'DELETE', path: "nodes/#{node}/#{type}/#{vmid}", body: URI.encode_www_form(body_params) ) - Fog::Proxmox::Json.get_data(response) end end # class Mock delete_server request class Mock