Skip to content

Commit

Permalink
🐛 do not add root asset to discovered inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock committed Feb 23, 2024
1 parent faf8ca0 commit faef2c3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions providers/vsphere/resources/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit faef2c3

Please sign in to comment.