Skip to content
This repository was archived by the owner on Jul 22, 2021. It is now read-only.

Commit aab09f6

Browse files
committed
Fixed an odd marshalling error in the ELB client
1 parent e483d88 commit aab09f6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

services/elb.class.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -938,9 +938,13 @@ public function set_load_balancer_policies_of_listener($load_balancer_name, $loa
938938
$opt['LoadBalancerPort'] = $load_balancer_port;
939939

940940
// Required list (non-map)
941-
$opt = array_merge($opt, CFComplexType::map(array(
942-
'PolicyNames' => (is_array($policy_names) ? $policy_names : array($policy_names))
943-
), 'member'));
941+
if ($policy_names) {
942+
$opt = array_merge($opt, CFComplexType::map(array(
943+
'PolicyNames' => (is_array($policy_names) ? $policy_names : array($policy_names))
944+
), ($policy_names ? 'member' : '')));
945+
} else {
946+
$opt['PolicyNames'] = '';
947+
}
944948

945949
return $this->authenticate('SetLoadBalancerPoliciesOfListener', $opt);
946950
}

0 commit comments

Comments
 (0)