1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[AWS|ELB] fix set_load_balancer_polices_for_backend mock to track set BackgroundServerDescriptions

This commit is contained in:
Michael Hale 2013-08-01 15:21:53 -04:00
parent 5e88bb0606
commit cea66c2cad

View file

@ -46,6 +46,8 @@ module Fog
description = load_balancer['BackendServerDescriptions'].find{|d| d["InstancePort"] == instance_port } || {}
description["InstancePort"] = instance_port
description["PolicyNames"] = policy_names
load_balancer['BackendServerDescriptions'].delete_if{|d| d["InstancePort"] == instance_port }
load_balancer['BackendServerDescriptions'] << description
Excon::Response.new.tap do |response|
response.status = 200