Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
fix seg violation in iam_virtual_mfa_devices. Issue: #44
Browse files Browse the repository at this point in the history
  • Loading branch information
yevgenypats committed Apr 26, 2021
1 parent f91436e commit a05ed37
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resources/iam_virtual_mfa_devices.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ func resolveIamVirtualMfaDeviceTags(ctx context.Context, meta schema.ClientMeta,
}
func resolveIamVirtualMfaDeviceUserTags(ctx context.Context, meta schema.ClientMeta, resource *schema.Resource, c schema.Column) error {
r := resource.Item.(types.VirtualMFADevice)
if r.User == nil {
return nil
}
tags := map[string]*string{}
for _, t := range r.User.Tags {
tags[*t.Key] = t.Value
Expand Down

0 comments on commit a05ed37

Please sign in to comment.