From 958b8521dc05d6ea7d3b817b15a9f1174b3c637c Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Thu, 12 Dec 2024 17:18:34 -0800 Subject: [PATCH] Fix the vmware technology URLs The top level here should really be vmware so we don't end up with vsphere under vsphere Signed-off-by: Tim Smith --- providers/vsphere/provider/provider.go | 2 +- providers/vsphere/resources/discovery.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/providers/vsphere/provider/provider.go b/providers/vsphere/provider/provider.go index d1425261af..ef8bc30f1c 100644 --- a/providers/vsphere/provider/provider.go +++ b/providers/vsphere/provider/provider.go @@ -184,7 +184,7 @@ func (s *Service) detect(asset *inventory.Asset, conn *connection.VsphereConnect Build: vSphereInfo.Build, Kind: "api", Runtime: "vsphere", - TechnologyUrlSegments: []string{"vsphere", "vsphere", vSphereInfo.Version + "-" + vSphereInfo.Build}, + TechnologyUrlSegments: []string{"vmware", "vsphere", vSphereInfo.Version + "-" + vSphereInfo.Build}, } id, err := conn.Identifier() diff --git a/providers/vsphere/resources/discovery.go b/providers/vsphere/resources/discovery.go index c7068f77ab..dfdc5952a3 100644 --- a/providers/vsphere/resources/discovery.go +++ b/providers/vsphere/resources/discovery.go @@ -134,7 +134,7 @@ func discoverDatacenter(conn *connection.VsphereConnection, datacenterResource * Kind: "baremetal", Runtime: "vsphere-host", Family: []string{connection.Family}, - TechnologyUrlSegments: []string{"vsphere", "esxi", esxiVersion.Version + "-" + esxiVersion.Build}, + TechnologyUrlSegments: []string{"vmware", "esxi", esxiVersion.Version + "-" + esxiVersion.Build}, }, Connections: []*inventory.Config{clonedConfig}, // pass-in the parent connection config Labels: map[string]string{