mirror of
https://github.com/rancher/os.git
synced 2025-09-24 20:09:21 +00:00
ovfenv: always fallback to reading variables from vm params
This commit is contained in:
@@ -33,7 +33,10 @@ type ovfWrapper struct {
|
||||
}
|
||||
|
||||
func (ovf ovfWrapper) readConfig(key string) (string, error) {
|
||||
return ovf.env.Properties["guestinfo."+key], nil
|
||||
if val := ovf.env.Properties["guestinfo."+key]; val != "" {
|
||||
return val, nil
|
||||
}
|
||||
return readConfig(key)
|
||||
}
|
||||
|
||||
func NewDatasource(fileName string) *VMWare {
|
||||
|
Reference in New Issue
Block a user