Skip to content

Commit de4e6ca

Browse files
committed
api: Fixup double default of CACHE_PATH
This was previously only fixed for the legacy API, fix it for v1, too. Signed-off-by: Paul Spooren <mail@aparcar.org>
1 parent 7aad22a commit de4e6ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

asu/api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,8 @@ def api_v1_build_post():
269269
return response, status
270270

271271
req["store_path"] = current_app.config["STORE_PATH"]
272-
req["cache_path"] = current_app.config.get("CACHE_PATH")
272+
if current_app.config.get("CACHE_PATH"):
273+
req["cache_path"] = current_app.config.get("CACHE_PATH")
273274
req["upstream_url"] = current_app.config["UPSTREAM_URL"]
274275
req["branch_data"] = current_app.config["BRANCHES"][req["branch"]]
275276
req["request_hash"] = request_hash

0 commit comments

Comments
 (0)