Project

General

Profile

Revision bc82d5d5

Added by Vanya Jauhal almost 8 years ago

Fixes #7865 - Adds support for configuring dns during container creation

View differences:

app/models/service/containers.rb
13 13

  
14 14
          load_environment_variables(state, r)
15 15
          load_exposed_ports(state, r)
16
          load_dns(state, r)
16 17
        end
17 18

  
18 19
        Taxonomy.enabled_taxonomies.each do |taxonomy|
......
61 62
                              :priority => e.priority
62 63
      end
63 64
    end
65

  
66
    def load_dns(state, r)
67
      state.dns.each do |e|
68
        r.dns.build :name => e.name,
69
                    :priority => e.priority
70
      end
71
    end
64 72
  end
65 73
end

Also available in: Unified diff