Skip to content

Commit 8fbfd57

Browse files
authored
fix: do not serialize empty lists in ec2 (#4639)
1 parent 2331230 commit 8fbfd57

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "bugfix",
3+
"category": "EC2",
4+
"description": "do not serialize empty lists for EC2"
5+
}

lib/query/query_param_serializer.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ function serializeList(name, list, rules, fn) {
4242
var memberRules = rules.member || {};
4343

4444
if (list.length === 0) {
45-
fn.call(this, name, null);
45+
if (rules.api.protocol !== 'ec2') {
46+
fn.call(this, name, null);
47+
}
4648
return;
4749
}
4850

0 commit comments

Comments
 (0)