lib/fog/network/huaweicloud/requests/get_subnet.rb in fog-huaweicloud-0.0.2 vs lib/fog/network/huaweicloud/requests/get_subnet.rb in fog-huaweicloud-0.0.3

- old
+ new

@@ -1,10 +1,10 @@ module Fog module Network class HuaweiCloud class Real def get_subnet(subnet_id,openstack_compatible = true) - overwrite_version = openstack_compatible ? {} : {'v2.0' => 'v1'} + overwrite_version = openstack_compatible ? {} : {"v2.0" => "v1/#{@current_tenant['id']}"} request({:expects => [200], :method=> 'GET', :path => "subnets/#{subnet_id}"}, true, overwrite_version ) end end