1
0
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:
Sven Dowideit
2017-03-01 15:12:56 +10:00
parent 23a4d8ec76
commit 391082fa50
16 changed files with 181 additions and 91 deletions

9
config/cloudinit/datasource/vmware/vmware.go Normal file → Executable file
View 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 {