Skip to content

Commit ff1545c

Browse files
Add more error message while delete volume failed
Co-authored-by: Lucas Bajolet <105649352+lbajolet-hashicorp@users.noreply.github.com>
1 parent 8ab15f1 commit ff1545c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

builder/openstack/step_create_volume.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func (s *StepCreateVolume) Cleanup(state multistep.StateBag) {
114114
// Delete the volume in any status if exists.
115115
err = volumes.Delete(blockStorageClient, s.volumeID, volumes.DeleteOpts{}).ExtractErr()
116116
if err != nil {
117-
ui.Error(fmt.Sprintf(
117+
ui.Error(fmt.Sprintf("Error cleaning up volume %q: %s. This may need manual deletion.", s.volumeID, err))
118118
"Error cleaning up volume. Please delete the volume manually: %s", s.volumeID))
119119
}
120120
}

0 commit comments

Comments
 (0)