import json


def _load_deploy_event_result(line):
    """Helper to extract a data dictionary from parsed command output line.

    Shub tool prints the lines as python dicts, so quotes should be properly
    replaced with double quotes to extract data from json dict.
    """
    return json.loads(line.replace("'", '"'))