Skip to content

Commit

Permalink
🧹 add region to subnet name for gcp to help differentiate (#1556)
Browse files Browse the repository at this point in the history
fixes #1507
  • Loading branch information
vjeffrey authored Aug 22, 2023
1 parent 5141268 commit 2a14c70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions motor/discovery/gcp/mql_asset_objects.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,14 @@ func computeSubnetworks(m *MqlDiscovery, project string, tc *providers.Config) (
}
for _, s := range subnets {
region := gcp.RegionNameFromRegionUrl(s.RegionUrl)

subnetName := s.Name + "-" + region
assets = append(assets, MqlObjectToAsset(
mqlObject{
name: s.Name,
name: subnetName,
gcpObject: gcpObject{
project: project,
region: region,
name: s.Name,
name: subnetName,
id: s.Id,
service: "compute",
objectType: "subnetwork",
Expand Down

0 comments on commit 2a14c70

Please sign in to comment.