Skip to content
This repository has been archived by the owner on Jun 18, 2022. It is now read-only.

Commit

Permalink
Merge pull request #63 from StrongMonkey/fix-dns
Browse files Browse the repository at this point in the history
add fields before set dns
  • Loading branch information
ibuildthecloud authored Oct 17, 2016
2 parents e42e13e + a123e3b commit dce0399
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/compute/compute.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ func DoInstanceActivate(instance model.Instance, host model.Host, progress *prog
utils.AddLabel(&config, constants.ContainerNameLabel, instanceName)
}

setupFieldsHostConfig(instance.Data.Fields, &hostConfig)

setupFieldsConfig(instance.Data.Fields, &config)

setupPublishPorts(&hostConfig, instance)

if err := setupDNSSearch(&hostConfig, instance); err != nil {
Expand All @@ -81,16 +85,12 @@ func DoInstanceActivate(instance model.Instance, host model.Host, progress *prog

setupCattleConfigURL(instance, &config)

setupFieldsHostConfig(instance.Data.Fields, &hostConfig)

setupNetworkingConfig(&networkConfig, instance)

setupDeviceOptions(&hostConfig, instance, infoData)

setupComputeResourceFields(&hostConfig, instance)

setupFieldsConfig(instance.Data.Fields, &config)

setupHeathConfig(instance.Data.Fields, &config)

setupLabels(instance.Data.Fields.Labels, &config)
Expand Down

0 comments on commit dce0399

Please sign in to comment.