From 62bfdc42137b10d55166d0030958dbb0bfc36b5a Mon Sep 17 00:00:00 2001 From: Rodrigo Bassil Date: Thu, 29 Aug 2024 13:24:54 +0000 Subject: [PATCH] Update offline installer to ignore comments in the manifests. --- service/validator.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/validator.go b/service/validator.go index 0ff8a48..cc52339 100644 --- a/service/validator.go +++ b/service/validator.go @@ -281,12 +281,12 @@ func ValidateCreateVolumeRequest(ctx context.Context, req *csi.CreateVolumeReque // Validate volume capabilities vcs := req.GetVolumeCapabilities() if len(vcs) == 0 { - return "", "", 0, 0, 0, false, false, status.Error(codes.InvalidArgument, utils.GetMessageWithRunID(rid, "Controller Volume Capability are not provided")) + return "", "", 0, 0, 0, false, false, status.Error(codes.InvalidArgument, utils.GetMessageWithRunID(rid, "%s", "Controller Volume Capability are not provided")) } supported, reason := valVolumeCaps(vcs, protocol) if !supported { - return "", "", 0, 0, 0, false, false, status.Error(codes.InvalidArgument, utils.GetMessageWithRunID(rid, "Volume Capabilities are not supported. Reason=["+reason+"]")) + return "", "", 0, 0, 0, false, false, status.Error(codes.InvalidArgument, utils.GetMessageWithRunID(rid, "%s", "Volume Capabilities are not supported. Reason=["+reason+"]")) } return