1
0
mirror of https://github.com/rancher/os.git synced 2025-09-02 07:15:41 +00:00

Move Packet datasource from cloud-init-pre to cloud-init

This commit is contained in:
Josh Curl
2016-09-27 11:18:24 -07:00
parent 5987d713a4
commit 395ef0b8c4
2 changed files with 7 additions and 19 deletions

View File

@@ -16,22 +16,6 @@ import (
)
func enablePacketNetwork(cfg *rancherConfig.RancherConfig) {
bootStrapped := false
for _, v := range cfg.Network.Interfaces {
if v.Address != "" {
if err := netconf.ApplyNetworkConfigs(&cfg.Network); err != nil {
logrus.Errorf("Failed to bootstrap network: %v", err)
return
}
bootStrapped = true
break
}
}
if !bootStrapped {
return
}
c := metadata.NewClient(http.DefaultClient)
m, err := c.Metadata.Get()
if err != nil {