Skip to content

Commit

Permalink
🐛 ensure platform id gets set for no-setup awsec2ebs scans (#2981)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjeffrey authored Jan 9, 2024
1 parent 948e455 commit 8651d80
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions providers/aws/connection/awsec2ebsconn/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ func NewAwsEbsConnection(id uint32, conf *inventory.Config, asset *inventory.Ass
asset.Connections[0].Options["createdBy"] = "Mondoo"
}
}
if conf.Options[snapshot.NoSetup] == "true" {
conf.PlatformId = awsec2.MondooInstanceID(i.AccountID, targetRegion, convert.ToString(instanceinfo.InstanceId))
}
asset.PlatformIds = []string{conf.PlatformId}

// Mount Volume
Expand Down

0 comments on commit 8651d80

Please sign in to comment.