# ============LICENSE_START=======================================================
-# Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
+# Copyright (c) 2019-2022 AT&T Intellectual Property. All rights reserved.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
def create_graph(runtime_url, graph_id, graph_name):
url = urljoin(runtime_url, "api/graph/main")
- resp = reqs.post(url, json={"name": graph_name, "id": graph_id
- , "description": "", "main": True})
+ resp = reqs.post(url, json={"name": graph_name, "id": graph_id, "description": "", "main": True})
try:
resp.raise_for_status()
except Exception as e:
with open("runtime-request-failed.json", "w+") as f:
import json
+
json.dump(graph_request, f)
raise errors.DistributorAPIError(e)