We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c6e84c commit b9d3c8dCopy full SHA for b9d3c8d
pkg/cloud/cloud.go
@@ -144,7 +144,7 @@ func (s *cloud) DeleteVolume(volID string) error {
144
}
145
146
if vol.CanDelete() {
147
- _, err := s.waitVolumeAchieveStatus(volID, volumeAvailableStatus)
+ _, err := s.waitVolumeAchieveStatus(volID, availableDeleteStatus)
148
if err != nil {
149
return err
150
pkg/cloud/consts.go
@@ -52,6 +52,7 @@ var (
52
var (
53
volumeArchivedStatus = lset.NewSet[string](VolumeAvailableStatus, VolumeInUseStatus)
54
volumeAvailableStatus = lset.NewSet[string](VolumeAvailableStatus)
55
+ availableDeleteStatus = lset.NewSet[string](VolumeAvailableStatus, VolumeErrorStatus)
56
)
57
58
const (
0 commit comments