mirror of
https://github.com/rancher/os.git
synced 2025-09-01 14:48:55 +00:00
use DHCP for aws datasource
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
1
cmd/network/network.go
Normal file → Executable file
1
cmd/network/network.go
Normal file → Executable file
@@ -41,6 +41,7 @@ func ApplyNetworkConfig(cfg *config.CloudConfig) {
|
||||
log.Error(err)
|
||||
}
|
||||
|
||||
// TODO: seems wrong to do this outside netconf
|
||||
userSetHostname := cfg.Hostname != ""
|
||||
if err := netconf.RunDhcp(&cfg.Rancher.Network, !userSetHostname, !userSetDNS); err != nil {
|
||||
log.Error(err)
|
||||
|
Reference in New Issue
Block a user