def METHOD_NAME(p_uuid):
    log.debug("starting provider update")
    code = get_provider_code(p_uuid)
    log.info("got provider code {}".format(code))
    if code not in VALID_PROVIDER_CODES:
        log.fatal("invalid provider {}".format(code))
    query = "SELECT customer_uuid FROM provider WHERE uuid='{}'".format(p_uuid)
    b_output = _run_psql_query_on_k8s(query)
    cUUID = b_output.decode()
    log.info("provider was created by customer {}".format(cUUID))
    decrypted = run_decrypt(p_uuid, cUUID)
    parsed = json.loads(decrypted)
    pretty_json = json.dumps(parsed, indent=4)
    updated = edit_data(pretty_json)
    updated_parsed = json.loads(updated)
    encrypted = run_encrypt(json.dumps(updated_parsed), cUUID)
    query = "UPDATE provider set config='{}' WHERE uuid='{}'".format(encrypted, p_uuid)
    log.info("updating postgres")
    _run_psql_query_on_k8s(query)
    log.info("successfully updated postgres")