builder/azure/chroot: fix dropped error

This commit is contained in:
Lars Lehtonen 2019-10-30 11:14:32 -07:00
parent 6191b9c8c6
commit 6862e3534f
No known key found for this signature in database
GPG Key ID: 8137D474EBCB04F2
1 changed files with 3 additions and 0 deletions

View File

@ -95,6 +95,9 @@ func (s StepCreateNewDisk) Cleanup(state multistep.StateBag) {
ui.Say(fmt.Sprintf("Waiting for disk %q detach to complete", diskResourceID)) ui.Say(fmt.Sprintf("Waiting for disk %q detach to complete", diskResourceID))
err := NewDiskAttacher(azcli).WaitForDetach(context.Background(), diskResourceID) err := NewDiskAttacher(azcli).WaitForDetach(context.Background(), diskResourceID)
if err != nil {
ui.Error(fmt.Sprintf("error detaching disk %q: %s", diskResourceID, err))
}
ui.Say(fmt.Sprintf("Deleting disk %q", diskResourceID)) ui.Say(fmt.Sprintf("Deleting disk %q", diskResourceID))