frontend_modules/provision_ui/create_provision_json.py
def write_provision_to_file(request, aggregator_obj, fields):
    """
    writes the selected info to provision_file
    """

    provision_file = "provision.json"

    try:
        aggregator_obj.cloud_storage_object.upload_file(
            provision_file, json.dumps(fields, indent=4).encode("utf-8")
        )
        messages.success(request, f"updated provision file: {provision_file}")

    except Exception as err:
        messages.error(
            request, f"failed updating provision file: {provision_file}, Error: {err}")

    writes the selected info to provision_file
    
writes the selected info to provision_file
writes the selected info to provision_file
def write_provision_to_file(request, aggregator_obj, fields):
    provision_file = "provision.json"
    try:
        aggregator_obj.cloud_storage_object.upload_file(
            provision_file, json.dumps(fields, indent=4).encode("utf-8")
        )
        messages.success(request, f"updated provision file: {provision_file}")
    except Exception as err:
        messages.error(
            request, f"failed updating provision file: {provision_file}, Error: {err}")
def write_provision_to_file ( request , aggregator_obj , fields ) : provision_file = "provision.json" try : aggregator_obj . cloud_storage_object . upload_file ( provision_file , json . dumps ( fields , indent = 4 ) . encode ( "utf-8" ) ) messages . success ( request , f"updated provision file: {provision_file}" ) except Exception as err : messages . error ( request , f"failed updating provision file: {provision_file}, Error: {err}" )
writes the selected info to provision_file
writes the selected info to provision_file
"""
    writes the selected info to provision_file
    """
request
aggregator_obj
fields