lib/fog/rackspace/requests/load_balancers/update_node.rb in fog-1.22.0 vs lib/fog/rackspace/requests/load_balancers/update_node.rb in fog-1.22.1

- old
+ new

@@ -4,13 +4,13 @@ class Real def update_node(load_balancer_id, node_id, options = {}) data = { 'node' => {} } - if options.has_key? :weight + if options.key? :weight data['node']['weight'] = options[:weight] end - if options.has_key? :condition + if options.key? :condition data['node']['condition'] = options[:condition] end #TODO - Do anything if no valid options are passed in? request( :body => Fog::JSON.encode(data),