Project

General

Profile

Revision 2b80fdd9

Added by Ori Rabin almost 6 years ago

Fixes #13043 - Change Parameter inheritance to DockerParameter

View differences:

app/models/service/containers.rb
80 80
    def load_environment_variables(state, r)
81 81
      state.environment_variables.each do |environment_variable|
82 82
        var = r.environment_variables.build
83
        var.name = environment_variable.name
83
        var.key = environment_variable.key
84 84
        var.value = environment_variable.value
85
        var.priority = environment_variable.priority
86 85
      end
87 86
    end
88 87

  
89 88
    def load_exposed_ports(state, r)
90 89
      state.exposed_ports.each do |e|
91 90
        port = r.exposed_ports.build
92
        port.name = e.name
91
        port.key = e.key
93 92
        port.value = e.value
94
        port.priority = e.priority
95 93
      end
96 94
    end
97 95

  
98 96
    def load_dns(state, r)
99 97
      state.dns.each do |e|
100 98
        dns = r.dns.build
101
        dns.name = e.name
102
        dns.priority = e.priority
99
        dns.key = e.key
103 100
      end
104 101
    end
105 102

  

Also available in: Unified diff