From 9e7cc9e096eb401606d48b93813cff35e91d5064 Mon Sep 17 00:00:00 2001 From: Dinesh Majrekar Date: Thu, 30 May 2024 23:08:39 +0100 Subject: [PATCH] Fixes --- pkg/driver/controller_server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/driver/controller_server.go b/pkg/driver/controller_server.go index c4fca76..74d14fa 100644 --- a/pkg/driver/controller_server.go +++ b/pkg/driver/controller_server.go @@ -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 {