Whilelist params rather than a blacklist on Geo::NodeUpdateService

parent 34b5f20f
......@@ -5,7 +5,7 @@ module Geo
def initialize(geo_node, params)
@geo_node = geo_node
@old_namespace_ids = geo_node.namespace_ids
@params = params.except(:geo_node_key_attributes)
@params = params.slice(:url, :primary, :namespace_ids)
end
def execute
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment