Merge pull request #8293 from alrs/fix-azure-chroot-dropped-err

builder/azure/chroot: fix dropped error
This commit is contained in:
Megan Marsh 2019-10-30 13:13:25 -07:00 committed by GitHub
commit 553ca2e15d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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))
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))