From 1708722e25889c6ebb0f9c55e3131c0a614104d3 Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Fri, 12 Jul 2024 11:01:25 -0400 Subject: [PATCH] Continue refresh if cis_connect fails --- .../providers/vmware/infra_manager/inventory/collector.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/models/manageiq/providers/vmware/infra_manager/inventory/collector.rb b/app/models/manageiq/providers/vmware/infra_manager/inventory/collector.rb index 7970bcd52..b9a5e54da 100644 --- a/app/models/manageiq/providers/vmware/infra_manager/inventory/collector.rb +++ b/app/models/manageiq/providers/vmware/infra_manager/inventory/collector.rb @@ -190,6 +190,9 @@ def cis_connect(vim) return if vim.rev < '6.0' || vim.serviceContent.about.apiType != 'VirtualCenter' ems.connect(:service => :cis) + rescue => err + _log.warn("Failed to connect to CIS API: #{err}") + nil end def disconnect(vim)