Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
fix: Trim whitespace when restoring data that is potentially created …
Browse files Browse the repository at this point in the history
…from before we removed whitespace from the db via an upgrade script, and add another upgrade script to remove any whitespace that snuck in.
  • Loading branch information
fieldju committed Jan 24, 2019
1 parent f5c1ec9 commit ec3fcc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private Set<IamPrincipalPermission> getIamPrincipalPermissionSet(SDBMetadata sdb
sdbMetadata.getIamRolePermissions().forEach((iamPrincipalArn, roleName) -> {

iamPrincipalPermissionSet.add(new IamPrincipalPermission()
.withIamPrincipalArn(iamPrincipalArn)
.withIamPrincipalArn(iamPrincipalArn.trim())
.withRoleId(getRoleIdFromName(roleName))
);
});
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UPDATE AWS_IAM_ROLE set AWS_IAM_ROLE_ARN = TRIM(AWS_IAM_ROLE_ARN);

0 comments on commit ec3fcc7

Please sign in to comment.