def parse_ec2_tag()

in code/ct_flowlog_activator.py [0:0]


def parse_ec2_tag(tags):
    '''
    convert ec2 format tags to simpler dict
    '''
    try:
        simple_tags = {}
        if tags:
            for tag in tags:
                simple_tags[tag['Key']] = tag['Value']
        return simple_tags

    except Exception as e:
        LOGGER.error("Failed to parse EC2 tags: {}".format(e), exc_info=True)