def search_tag_copydbsnapshot()

in lambda/snapshots_tool_utils.py [0:0]


def search_tag_copydbsnapshot(response):
# Takes a list_tags_for_resource response and searches for our CopyDBSnapshot tag
    try:

        for tag in response['TagList']:
            if tag['Key'] == 'CopyDBSnapshot' and tag['Value'] == 'True': return True

    except Exception: return False

    else: return False