Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DMajrekar committed May 30, 2024
1 parent 584147a commit 9e7cc9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/driver/controller_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ func (d *Driver) ControllerPublishVolume(ctx context.Context, req *csi.Controlle
log.Info().Str("volume_id", volume.ID).Str("instance_id", req.NodeId).Msg("Volume successfully requested to be attached in Civo API")

log.Debug().Str("volume_id", volume.ID).Msg("Waiting for volume to become attached in Civo API")
//slep for 5 secons
time.Sleep(5 * time.Second)
//slep for 25 seconds, the time it takes for the volume to be attached
time.Sleep(25 * time.Second)
// refetch the volume
volume, err = d.CivoClient.GetVolume(req.VolumeId)
if err != nil {
Expand Down

0 comments on commit 9e7cc9e

Please sign in to comment.