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

Commit

Permalink
add fields before set dns
Browse files Browse the repository at this point in the history
  • Loading branch information
Daishan Peng committed Oct 16, 2016
1 parent e42e13e commit a123e3b
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 a123e3b

Please sign in to comment.