Skip to content

Commit

Permalink
made ControllerUnpublishVolume call idempotent (#1500)
Browse files Browse the repository at this point in the history
  • Loading branch information
agoblet committed Apr 28, 2021
1 parent 0179682 commit ddc7a5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/csi/cinder/openstack/openstack_volumes.go
Expand Up @@ -282,7 +282,8 @@ func (os *OpenStack) DetachVolume(instanceID, volumeID string) error {
}
}

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

// WaitDiskDetached waits for detached
Expand Down

0 comments on commit ddc7a5b

Please sign in to comment.