Clean up volumes

This commit is contained in:
Matthew Hooker 2018-10-26 20:02:13 -07:00
parent 87c67eee94
commit 03932f1157
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1
1 changed files with 0 additions and 6 deletions

View File

@ -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)