Skip to content

Commit

Permalink
port GCP SubType fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kubasobon committed Apr 23, 2024
1 parent f2f816f commit 148ceb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/resources/fetching/fetchers/gcp/assets_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func (r *GcpAsset) GetElasticCommonData() (map[string]any, error) {
m["user.effective.name"] = getAssetResourceName(r.ExtendedAsset)
}

if r.Type == fetching.CloudCompute && r.SubType == inventory.ComputeInstanceAssetType {
if r.Type == fetching.CloudCompute && r.ExtendedAsset.AssetType == inventory.ComputeInstanceAssetType {
fields := getAssetDataFields(r.ExtendedAsset)
if fields == nil {
return m, nil
Expand Down

0 comments on commit 148ceb2

Please sign in to comment.