Skip to content

Commit

Permalink
fix: do not serialize empty lists in ec2 (#4639)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhe authored May 22, 2024
1 parent 2331230 commit 8fbfd57
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/next-release/bugfix-EC2-de915a43.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"type": "bugfix",
"category": "EC2",
"description": "do not serialize empty lists for EC2"
}
4 changes: 3 additions & 1 deletion lib/query/query_param_serializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ function serializeList(name, list, rules, fn) {
var memberRules = rules.member || {};

if (list.length === 0) {
fn.call(this, name, null);
if (rules.api.protocol !== 'ec2') {
fn.call(this, name, null);
}
return;
}

Expand Down

0 comments on commit 8fbfd57

Please sign in to comment.