Commit 440b484
authored
only call SetAttributes() when attrMap not empty (#442)
For SQS's `CreateQueue` API, if you pass an empty map to the `CreateQueueInput.SetAttributes()` method, everything succeeds however the service will return the following cryptic error message:
`MalformedInput: End of list found where not expected`
This patch updates the generated code for attribute-based APIs to only call `SetAttributes()` on the input shape when there are attributes to set.
Issue aws-controllers-k8s/community#1695
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.1 parent a4bd77b commit 440b484
2 files changed
+16
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
141 | 143 | | |
142 | 144 | | |
143 | 145 | | |
| |||
165 | 167 | | |
166 | 168 | | |
167 | 169 | | |
168 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
169 | 177 | | |
170 | 178 | | |
171 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1779 | 1779 | | |
1780 | 1780 | | |
1781 | 1781 | | |
1782 | | - | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
1783 | 1785 | | |
1784 | 1786 | | |
1785 | 1787 | | |
| |||
1874 | 1876 | | |
1875 | 1877 | | |
1876 | 1878 | | |
1877 | | - | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
1878 | 1882 | | |
1879 | 1883 | | |
1880 | 1884 | | |
| |||
0 commit comments