From 38da97a185c85886fdfc59b182d09b87cee4b210 Mon Sep 17 00:00:00 2001 From: noahmmcgivern Date: Fri, 6 Oct 2023 14:54:25 -0400 Subject: [PATCH] fix: Validation nrql backup functionality --- internal/install/recipe_installer.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/internal/install/recipe_installer.go b/internal/install/recipe_installer.go index bc2038d7d..959b42693 100644 --- a/internal/install/recipe_installer.go +++ b/internal/install/recipe_installer.go @@ -630,12 +630,16 @@ func (i *RecipeInstall) validateRecipeViaAllMethods(ctx context.Context, r *type validationFuncs = append(validationFuncs, func() (string, error) { return validation.ValidateIntegration(integrationName) }) - } else if hasValidationNRQL { + } else { + log.Debugf("no validationIntegration defined, skipping") + } + + if hasValidationNRQL { validationFuncs = append(validationFuncs, func() (string, error) { return i.recipeValidator.ValidateRecipe(timeoutCtx, *m, *r, vars) }) } else { - log.Debugf("no validationIntegration or validationNRQL defined, skipping") + log.Debugf("no validationNRQL defined, skipping") } if len(validationFuncs) == 0 {