Project

General

Profile

Revision 2b80fdd9

Added by Ori Rabin almost 6 years ago

Fixes #13043 - Change Parameter inheritance to DockerParameter

View differences:

app/controllers/containers/steps_controller.rb
39 39
      instance_variable_set("@docker_container_wizard_states_#{step}", s)
40 40
    end
41 41

  
42
    def docker_parameters_permited_params
43
      [:key, :reference_id, :value, :_destroy, :id]
44
    end
45

  
42 46
    def state_params
43 47
      attrs = case step
44 48
              when :preliminary
......
50 54
              when :environment
51 55
                [:tty, :docker_container_wizard_state_id,
52 56
                 :attach_stdin, :attach_stdout, :attach_stderr,
53
                 :exposed_ports_attributes => [], :environment_variables_attributes => [],
54
                 :dns_attributes => []
57
                 :exposed_ports_attributes => docker_parameters_permited_params,
58
                 :environment_variables_attributes => docker_parameters_permited_params,
59
                 :dns_attributes => docker_parameters_permited_params
55 60
                ]
56 61
              end
57 62

  
......
72 77
                  else
73 78
                    service.create_container!(@state)
74 79
                  end
80
      
75 81
      if container.present?
76 82
        process_success(:object => container, :success_redirect => container_path(container))
77 83
      else

Also available in: Unified diff