engine: resources, graph: Change the Close method to Cleanup
This also changes a few similarly named methods. Clearer what it's doing in terms of cleanup vs. causing some action.
This commit is contained in:
@@ -361,8 +361,9 @@ func (obj *HetznerVMRes) Init(init *engine.Init) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Close deletes the authentication info before closing the resource.
|
||||
func (obj *HetznerVMRes) Close() error {
|
||||
// Cleanup is run by the engine to clean up after the resource is done. It
|
||||
// deletes the authentication info before closing the resource.
|
||||
func (obj *HetznerVMRes) Cleanup() error {
|
||||
obj.APIToken = ""
|
||||
obj.client = nil
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user