Skip to content

Commit

Permalink
🧹 use the correct region for the aws ec2 ebs instance id (#2521)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjeffrey authored Nov 8, 2023
1 parent 4567c7f commit fa915ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/aws/connection/awsec2ebsconn/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func NewAwsEbsConnection(id uint32, conf *inventory.Config, asset *inventory.Ass
switch c.targetType {
case awsec2ebstypes.EBSTargetInstance:
ok, volLocation, volId, err = c.SetupForTargetInstance(ctx, instanceinfo)
conf.PlatformId = awsec2.MondooInstanceID(i.AccountID, conf.Options["region"], convert.ToString(instanceinfo.InstanceId))
conf.PlatformId = awsec2.MondooInstanceID(i.AccountID, targetRegion, convert.ToString(instanceinfo.InstanceId))
case awsec2ebstypes.EBSTargetVolume:
ok, volLocation, volId, err = c.SetupForTargetVolume(ctx, *volumeid)
conf.PlatformId = awsec2.MondooVolumeID(volumeid.Account, volumeid.Region, volumeid.Id)
Expand Down

0 comments on commit fa915ff

Please sign in to comment.