mirror of
https://github.com/rancher/os.git
synced 2025-09-02 07:15:41 +00:00
refactor a little and keep the datasource errors for later
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
9
config/cloudinit/datasource/vmware/vmware.go
Normal file → Executable file
9
config/cloudinit/datasource/vmware/vmware.go
Normal file → Executable file
@@ -29,6 +29,15 @@ type VMWare struct {
|
||||
ovfFileName string
|
||||
readConfig readConfigFunction
|
||||
urlDownload urlDownloadFunction
|
||||
lastError error
|
||||
}
|
||||
|
||||
func (v VMWare) Finish() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (v VMWare) String() string {
|
||||
return fmt.Sprintf("%s: %s (lastError: %s)", v.Type(), v.ovfFileName, v.lastError)
|
||||
}
|
||||
|
||||
func (v VMWare) AvailabilityChanges() bool {
|
||||
|
Reference in New Issue
Block a user