mirror of
https://github.com/rancher/os.git
synced 2025-06-29 00:06:49 +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)
|
||||
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
|
||||
cc := rancherConfig.CloudConfig{
|
||||
Rancher: rancherConfig.RancherConfig{
|
||||
cc := nonCfg{
|
||||
Rancher: nonRancherCfg{
|
||||
Network: metadata.NetworkConfig,
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user