diff --git a/lib/puppet/provider/elb_loadbalancer/v2.rb b/lib/puppet/provider/elb_loadbalancer/v2.rb index f6471484..c5c9ef9b 100644 --- a/lib/puppet/provider/elb_loadbalancer/v2.rb +++ b/lib/puppet/provider/elb_loadbalancer/v2.rb @@ -59,13 +59,13 @@ def self.load_balancer_to_hash(region, load_balancer) end health_check = {} unless load_balancer.health_check.nil? - health_check = { - 'healthy_threshold' => load_balancer.health_check.healthy_threshold, - 'interval' => load_balancer.health_check.interval, - 'target' => load_balancer.health_check.target, - 'timeout' => load_balancer.health_check.timeout, - 'unhealthy_threshold' => load_balancer.health_check.unhealthy_threshold, - } + health_check = { + 'healthy_threshold' => load_balancer.health_check.healthy_threshold, + 'interval' => load_balancer.health_check.interval, + 'target' => load_balancer.health_check.target, + 'timeout' => load_balancer.health_check.timeout, + 'unhealthy_threshold' => load_balancer.health_check.unhealthy_threshold, + } end tag_response = elb_client(region).describe_tags( load_balancer_names: [load_balancer.load_balancer_name] @@ -153,7 +153,7 @@ def create @property_hash[:ensure] = :present if ! resource[:health_check].nil? - self.health_check = resource[:health_check] + self.health_check = resource[:health_check] end instances = resource[:instances] @@ -258,20 +258,6 @@ def subnets=(value) def flush update unless @property_hash[:ensure] == :absent end - - def health_check=(value) - elb = elb_client(resource[:region]) - elb.configure_health_check({ - load_balancer_name: name, - health_check: { - target: value['target'], - interval: value['interval'], - timeout: value['timeout'], - unhealthy_threshold: value['unhealthy_threshold'], - healthy_threshold: value['healthy_threshold'], - }, - }) - end def health_check=(value) elb = elb_client(resource[:region])