mirror of
https://github.com/rancher/os.git
synced 2025-07-05 11:06:13 +00:00
Fixed regression: User-configured datasources ignored in cloud-init-save
Bug introduced in 51aff79c7e (diff-add8541b8b3d498a5afdf604303ea0d4)
Signed-off-by: janeczku <jan@rancher.com>
This commit is contained in:
parent
5494e76041
commit
a9bbe5046a
@ -334,9 +334,10 @@ func RunInit() error {
|
||||
if hypervisor == "vmware" {
|
||||
// add vmware to the end - we don't want to over-ride an choices the user has made
|
||||
cfg.Rancher.CloudInit.Datasources = append(cfg.Rancher.CloudInit.Datasources, hypervisor)
|
||||
if err := config.Set("rancher.cloud_init.datasources", cfg.Rancher.CloudInit.Datasources); err != nil {
|
||||
log.Error(err)
|
||||
}
|
||||
}
|
||||
|
||||
if err := config.Set("rancher.cloud_init.datasources", cfg.Rancher.CloudInit.Datasources); err != nil {
|
||||
log.Error(err)
|
||||
}
|
||||
|
||||
log.Infof("init, runCloudInitServices(%v)", cfg.Rancher.CloudInit.Datasources)
|
||||
|
Loading…
Reference in New Issue
Block a user