Skip to content

Commit

Permalink
Merge pull request #1053 from haarchri/fix/transfer-user-external-name
Browse files Browse the repository at this point in the history
fix(name): fix transfer/user &cr.name and use annotation
  • Loading branch information
haarchri authored Jan 5, 2022
2 parents f097d7d + 11b2008 commit 9531351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/transfer/user/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,6 @@ func postCreate(_ context.Context, cr *svcapitypes.User, obj *svcsdk.CreateUserO
func preCreate(_ context.Context, cr *svcapitypes.User, obj *svcsdk.CreateUserInput) error {
obj.ServerId = cr.Spec.ForProvider.ServerID
obj.Role = cr.Spec.ForProvider.Role
obj.UserName = &cr.Name
obj.UserName = awsclients.String(meta.GetExternalName(cr))
return nil
}

0 comments on commit 9531351

Please sign in to comment.