mirror of
https://github.com/rancher/os.git
synced 2025-09-03 15:54:24 +00:00
Read rancher.yml from cloud config
This commit is contained in:
@@ -56,7 +56,7 @@ func saveToDisk(data map[interface{}]interface{}) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func readSavedConfig(bytes []byte) (map[interface{}]interface{}, error) {
|
func readSavedConfig(bytes []byte) (map[interface{}]interface{}, error) {
|
||||||
return readConfig(bytes, ConfigFile, PrivateConfigFile)
|
return readConfig(bytes, CloudConfigFile, ConfigFile, PrivateConfigFile)
|
||||||
}
|
}
|
||||||
|
|
||||||
func readConfig(bytes []byte, files ...string) (map[interface{}]interface{}, error) {
|
func readConfig(bytes []byte, files ...string) (map[interface{}]interface{}, error) {
|
||||||
|
Reference in New Issue
Block a user