Skip to content

Commit ddc7a5b

Browse files
authored
made ControllerUnpublishVolume call idempotent (kubernetes#1500)
1 parent 0179682 commit ddc7a5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/csi/cinder/openstack/openstack_volumes.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,8 @@ func (os *OpenStack) DetachVolume(instanceID, volumeID string) error {
282282
}
283283
}
284284

285-
return fmt.Errorf("disk: %s has no attachments or not attached to compute %s", volume.ID, instanceID)
285+
// Disk has no attachments or not attached to provided compute
286+
return nil
286287
}
287288

288289
// WaitDiskDetached waits for detached

0 commit comments

Comments
 (0)