Permalink
Browse files

Fixed an odd marshalling error in the ELB client

  • Loading branch information...
1 parent e483d88 commit aab09f6dac35e5e9a263fb7311bb4e71de95b0ba @jeremeamia jeremeamia committed Nov 15, 2013
Showing with 7 additions and 3 deletions.
  1. +7 −3 services/elb.class.php
View
@@ -938,9 +938,13 @@ public function set_load_balancer_policies_of_listener($load_balancer_name, $loa
$opt['LoadBalancerPort'] = $load_balancer_port;
// Required list (non-map)
- $opt = array_merge($opt, CFComplexType::map(array(
- 'PolicyNames' => (is_array($policy_names) ? $policy_names : array($policy_names))
- ), 'member'));
+ if ($policy_names) {
+ $opt = array_merge($opt, CFComplexType::map(array(
+ 'PolicyNames' => (is_array($policy_names) ? $policy_names : array($policy_names))
+ ), ($policy_names ? 'member' : '')));
+ } else {
+ $opt['PolicyNames'] = '';
+ }
return $this->authenticate('SetLoadBalancerPoliciesOfListener', $opt);
}

0 comments on commit aab09f6

Please sign in to comment.