From faef2c3b95035cf77556147cfdbd63295bcb77d3 Mon Sep 17 00:00:00 2001 From: Christoph Hartmann Date: Sat, 24 Feb 2024 00:07:41 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20do=20not=20add=20root=20asset=20?= =?UTF-8?q?to=20discovered=20inventory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- providers/vsphere/resources/discovery.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/providers/vsphere/resources/discovery.go b/providers/vsphere/resources/discovery.go index a96e9e2a19..e0a9f34c34 100644 --- a/providers/vsphere/resources/discovery.go +++ b/providers/vsphere/resources/discovery.go @@ -58,10 +58,6 @@ func Discover(runtime *plugin.Runtime) (*inventory.Inventory, error) { targets := handleTargets(conn.Conf.Discover.Targets) - if stringx.Contains(targets, DiscoveryApi) { - in.Spec.Assets = append(in.Spec.Assets, conn.Asset()) - } - res, err := NewResource(runtime, "vsphere", map[string]*llx.RawData{}) if err != nil { return nil, err