mirror of
https://github.com/rancher/os.git
synced 2025-06-29 16:26:50 +00:00
Merge pull request #1692 from SvenDowideit/fix-ssh-keys-from-user-data
Use a fake cloud-config struct that only contains the NetworkConfig -…
This commit is contained in:
commit
c62c05773c
@ -143,9 +143,16 @@ func saveFiles(cloudConfigBytes, scriptBytes []byte, metadata datasource.Metadat
|
|||||||
log.Infof("not writing %s: its all defaults.", rancherConfig.CloudConfigNetworkFile)
|
log.Infof("not writing %s: its all defaults.", rancherConfig.CloudConfigNetworkFile)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type nonRancherCfg struct {
|
||||||
|
Network netconf.NetworkConfig `yaml:"network,omitempty"`
|
||||||
|
}
|
||||||
|
type nonCfg struct {
|
||||||
|
Rancher nonRancherCfg `yaml:"rancher,omitempty"`
|
||||||
|
}
|
||||||
// write the network.yml file from metadata
|
// write the network.yml file from metadata
|
||||||
cc := rancherConfig.CloudConfig{
|
cc := nonCfg{
|
||||||
Rancher: rancherConfig.RancherConfig{
|
Rancher: nonRancherCfg{
|
||||||
Network: metadata.NetworkConfig,
|
Network: metadata.NetworkConfig,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user