Commit e8f358c
committed
fix(aws): guard GetIamPolicyDocumentContextE; remove stray rds test print
- iam.go: GetIamPolicyDocumentContextE previously dereferenced
version.VersionId without a nil check and fell through with an empty
defaultVersion when ListPolicyVersions returned no default, producing
a confusing AWS validation error. Now guards the dereference and
returns a clear error naming the policy ARN.
- rds_test.go: drop a leftover fmt.Println(err) in the error-path
subtests; the existing assert.EqualError is sufficient.1 parent d8f4e29 commit e8f358c
2 files changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
128 | 132 | | |
129 | 133 | | |
130 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
146 | 145 | | |
147 | 146 | | |
148 | 147 | | |
149 | | - | |
150 | 148 | | |
151 | 149 | | |
152 | 150 | | |
| |||
0 commit comments