lib/fog/openstack/requests/network/update_router.rb in fog-1.20.0 vs lib/fog/openstack/requests/network/update_router.rb in fog-1.21.0

- old
+ new

@@ -4,12 +4,12 @@ class Real # Update Router # - # Beyond the name and the administrative state, the only - # parameter which can be updated with this operation is + # Beyond the name and the administrative state, the only + # parameter which can be updated with this operation is # the external gateway. # # router = Fog::Network[:openstack].routers.first # net = Fog::Network[:openstack].networks.first # @@ -22,11 +22,11 @@ # :admin_state_up => true # # @see http://docs.openstack.org/api/openstack-network/2.0/content/router_update.html def update_router(router_id, options = {}) data = { 'router' => {} } - + vanilla_options = [:name, :admin_state_up] egi = options[:external_gateway_info] if egi if egi.is_a?(Fog::Network::OpenStack::Network) @@ -52,10 +52,10 @@ end class Mock def update_router(router_id, options = {}) response = Excon::Response.new - router = list_routers.body['routers'].detect do |_| + router = list_routers.body['routers'].detect do |_| _['id'] == router_id end if router egi = options[:external_gateway_info] if egi