mirror of
https://github.com/rancher/os.git
synced 2025-09-02 07:15:41 +00:00
Refactor the cloud-init metadata to return a netconf.NetworkConfig
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
@@ -317,6 +317,7 @@ func readConfigFile(file string) ([]byte, error) {
|
||||
}
|
||||
|
||||
func substituteVars(userDataBytes []byte, metadata datasource.Metadata) []byte {
|
||||
// TODO: I think this currently does nothing - its hardcoded for COREOS env..
|
||||
env := initialize.NewEnvironment("", "", "", "", metadata)
|
||||
userData := env.Apply(string(userDataBytes))
|
||||
|
||||
|
Reference in New Issue
Block a user