|
|
|
@ -474,7 +474,7 @@ class ShixunsController < ApplicationController
|
|
|
|
|
ShixunSchool.create!(arr)
|
|
|
|
|
end
|
|
|
|
|
# 超级管理员和运营人员才能保存 中间层服务器pod信息的配置
|
|
|
|
|
if current_user.admin? || current_user.business?
|
|
|
|
|
#if current_user.admin? || current_user.business? ||
|
|
|
|
|
@shixun.shixun_service_configs.destroy_all
|
|
|
|
|
service_config_params[:shixun_service_configs].each do |config|
|
|
|
|
|
logger.info("####{config[:mirror_repository_id]}")
|
|
|
|
@ -482,7 +482,7 @@ class ShixunsController < ApplicationController
|
|
|
|
|
# 不保存没有镜像的配置
|
|
|
|
|
@shixun.shixun_service_configs.create!(config) if name.present?
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
#end
|
|
|
|
|
# 添加第二仓库
|
|
|
|
|
if params[:is_secret_repository]
|
|
|
|
|
add_secret_repository
|
|
|
|
|