From 03932f1157e91908660dee0f5f61b8672062e640 Mon Sep 17 00:00:00 2001 From: Matthew Hooker Date: Fri, 26 Oct 2018 20:02:13 -0700 Subject: [PATCH] Clean up volumes --- builder/oracle/classic/step_create_persistent_volume.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/builder/oracle/classic/step_create_persistent_volume.go b/builder/oracle/classic/step_create_persistent_volume.go index 497253544..a9f27c613 100644 --- a/builder/oracle/classic/step_create_persistent_volume.go +++ b/builder/oracle/classic/step_create_persistent_volume.go @@ -47,12 +47,6 @@ func (s *stepCreatePersistentVolume) Run(_ context.Context, state multistep.Stat } func (s *stepCreatePersistentVolume) Cleanup(state multistep.StateBag) { - _, cancelled := state.GetOk(multistep.StateCancelled) - _, halted := state.GetOk(multistep.StateHalted) - if !cancelled && !halted { - return - } - client := state.Get("client").(*compute.Client) ui := state.Get("ui").(packer.Ui)