def passed_softfailure_detector()

in network-load-balancer-copy-utility/copy_network_load_balancer.py [0:0]


def passed_softfailure_detector(elb_data):
    """
    Checks for any soft failures
    """
    if debug:
        logger.debug("Checking soft failure detector")
    # 1. Check for AWS reserved tag
    if len(elb_data['TagDescriptions']):
        # This creates a copy of the list and allows us to iterate over the
        # copy so we can modify the original
        for tag in elb_data['TagDescriptions'][0]['Tags'][:]:
            if tag['Key'].startswith('aws:'):
                print("AWS reserved tag is in use. The aws: prefix in your tag names or \