def record_deployed_values(deployed_values, filename):
    # type: (Dict[str, Any], str) -> None
    """Record deployed values to a JSON file.

    This allows subsequent deploys to lookup previously deployed values.

    """
    final_values = {}  # type: Dict[str, Any]
    if os.path.isfile(filename):
        with open(filename, 'r') as f:
            final_values = json.load(f)
    final_values.update(deployed_values)
    with open(filename, 'wb') as f:
        data = serialize_to_json(final_values)
        f.write(data.encode('utf-8'))
def record_deployed_values ( deployed_values , filename ) : final_values = { } if os . path . isfile ( filename ) : with open ( filename , 'r' ) as f : final_values = json . load ( f ) final_values . update ( deployed_values ) with open ( filename , 'wb' ) as f : data = serialize_to_json ( final_values ) f . write ( data . encode ( 'utf-8' ) )
Record deployed values to a JSON file.

    This allows subsequent deploys to lookup previously deployed values.