def get_set_value(set_data, match_key):

    """Extract value from SET output"""

    for val in set_data:

        try:
            key, value = val.split('=', 1)
        except ValueError:
            continue

        if key == match_key:
            return value

    return None