Commit 45c8ba47 authored by Nick Thomas's avatar Nick Thomas

Fix setting Geo sync capacity in the admin panel

parent c2809c54
......@@ -5,7 +5,8 @@ module Geo
def initialize(geo_node, params)
@geo_node = geo_node
@old_namespace_ids = geo_node.namespace_ids
@params = params.slice(:url, :primary, :namespace_ids)
@params = params.dup
@params.delete(:geo_node_key_attributes)
@params[:namespace_ids] = @params[:namespace_ids].to_s.split(',')
end
......
......@@ -77,7 +77,14 @@ class Admin::GeoNodesController < Admin::ApplicationController
private
def geo_node_params
params.require(:geo_node).permit(:url, :primary, :namespace_ids, geo_node_key_attributes: [:key])
params.require(:geo_node).permit(
:url,
:primary,
:namespace_ids,
:repos_max_capacity,
:files_max_capacity,
geo_node_key_attributes: [:key]
)
end
def check_license
......
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