From d561911217a464ee369f93e79a16746c67ca1b10 Mon Sep 17 00:00:00 2001 From: Matt Brock Date: Sat, 18 Jan 2025 22:18:48 -0600 Subject: [PATCH] Fix error checking for integration spec --- lib/srv/discovery/access_graph_azure.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/srv/discovery/access_graph_azure.go b/lib/srv/discovery/access_graph_azure.go index 2879b4b38d214..faab8a0383807 100644 --- a/lib/srv/discovery/access_graph_azure.go +++ b/lib/srv/discovery/access_graph_azure.go @@ -401,7 +401,7 @@ func (s *Server) accessGraphAzureFetchersFromMatchers( continue } azureIntegration := integration.GetAzureOIDCIntegrationSpec() - if azureIntegration != nil { + if azureIntegration == nil { errs = append(errs, trace.Errorf("integration %s has no Azure OIDC integration spec", matcher.Integration)) continue }