From 01f62e9738dfa58f18e2121ba103334a9b020385 Mon Sep 17 00:00:00 2001 From: Raghavendra Talur Date: Fri, 10 Jan 2025 10:15:55 -0500 Subject: [PATCH] vrg: return nil on error Signed-off-by: Raghavendra Talur --- internal/controller/vrg_recipe.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/vrg_recipe.go b/internal/controller/vrg_recipe.go index 452f55ddf..0049629d1 100644 --- a/internal/controller/vrg_recipe.go +++ b/internal/controller/vrg_recipe.go @@ -81,7 +81,7 @@ func GetPVCSelector(ctx context.Context, reader client.Reader, vrg ramen.VolumeR ) (PvcSelector, error) { recipeElements, err := RecipeElementsGet(ctx, reader, vrg, ramenConfig, log) if err != nil { - return recipeElements.PvcSelector, err + return PvcSelector{}, err } return recipeElements.PvcSelector, nil