Fixing elb sync issues. (#641)

* Fixing elb sync issues.

* Fixing de-duplications of names.
This commit is contained in:
kevgliss
2017-01-05 16:06:34 -08:00
committed by GitHub
parent 7aa5ba9c6b
commit 83128f3019
4 changed files with 55 additions and 14 deletions

View File

@ -28,7 +28,7 @@ def retry_throttled(exception):
if exception.response['Error']['Code'] == 'CertificateNotFound':
return False
metrics.send('ec2_retry', 'counter', 1)
metrics.send('elb_retry', 'counter', 1)
return True
@ -149,6 +149,7 @@ def describe_listeners_v2(**kwargs):
@sts_client('elb')
@retry(retry_on_exception=retry_throttled, stop_max_attempt_number=7, wait_exponential_multiplier=1000)
def describe_load_balancer_policies(load_balancer_name, policy_names, **kwargs):
"""
Fetching all policies currently associated with an ELB.
@ -160,6 +161,7 @@ def describe_load_balancer_policies(load_balancer_name, policy_names, **kwargs):
@sts_client('elbv2')
@retry(retry_on_exception=retry_throttled, stop_max_attempt_number=7, wait_exponential_multiplier=1000)
def describe_ssl_policies_v2(policy_names, **kwargs):
"""
Fetching all policies currently associated with an ELB.
@ -171,6 +173,7 @@ def describe_ssl_policies_v2(policy_names, **kwargs):
@sts_client('elb')
@retry(retry_on_exception=retry_throttled, stop_max_attempt_number=7, wait_exponential_multiplier=1000)
def describe_load_balancer_types(policies, **kwargs):
"""
Describe the policies with policy details.