diff --git a/providers/vsphere/resources/vsphere.lr b/providers/vsphere/resources/vsphere.lr index 3fbfa2e231..79a7cf7f6b 100644 --- a/providers/vsphere/resources/vsphere.lr +++ b/providers/vsphere/resources/vsphere.lr @@ -1,6 +1,8 @@ // Copyright (c) Mondoo, Inc. // SPDX-License-Identifier: BUSL-1.1 +import "../../core/resources/core.lr" + option provider = "go.mondoo.com/cnquery/v9/providers/vsphere" option go_package = "go.mondoo.com/cnquery/v10/providers/vsphere/resources" diff --git a/providers/vsphere/resources/vsphere.lr.go b/providers/vsphere/resources/vsphere.lr.go index 839c4e91b6..1dbc5474d1 100644 --- a/providers/vsphere/resources/vsphere.lr.go +++ b/providers/vsphere/resources/vsphere.lr.go @@ -183,7 +183,7 @@ func CreateResource(runtime *plugin.Runtime, name string, args map[string]*llx.R var getDataFields = map[string]func(r plugin.Resource) *plugin.DataRes{ "asset.cpes": func(r plugin.Resource) *plugin.DataRes { - return (r.(*mqlAsset).GetCpes()).ToDataRes(types.Array(types.Resource("core.cpe"))) + return (r.(*mqlAsset).GetCpes()).ToDataRes(types.Array(types.Resource("cpe"))) }, "asset.vulnerabilityReport": func(r plugin.Resource) *plugin.DataRes { return (r.(*mqlAsset).GetVulnerabilityReport()).ToDataRes(types.Dict)