Added an if loop to prevent failure on elb_items being NONE
@@ -190,6 +190,7 @@ class ELBAuditor(Auditor):
alert when an SSL listener is not using the latest reference policy.
"""
policy_port_map = defaultdict(list)
+ if elb_item.config.get('ListenerDescriptions'):
for listener in elb_item.config.get('ListenerDescriptions'):
if len(listener.get('PolicyNames', [])) > 0:
for name in listener.get('PolicyNames', []):
