lib/fog/network/proxmox/requests/update_network.rb in fog-proxmox-0.5.5 vs lib/fog/network/proxmox/requests/update_network.rb in fog-proxmox-0.6.0
- old
+ new
@@ -15,26 +15,23 @@
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with Fog::Proxmox. If not, see <http://www.gnu.org/licenses/>.
-require 'fog/proxmox/json'
-
module Fog
module Network
class Proxmox
# class Real update_network request
class Real
def update_network(path_params, body_params)
node = path_params[:node]
iface = path_params[:iface]
- response = request(
+ request(
expects: [200],
method: 'PUT',
path: "nodes/#{node}/network/#{iface}",
body: URI.encode_www_form(body_params)
)
- Fog::Proxmox::Json.get_data(response)
end
end
# class Mock update_network request
class Mock