Skip to content

Commit

Permalink
api: Fixup double default of CACHE_PATH
Browse files Browse the repository at this point in the history
This was previously only fixed for the legacy API, fix it for v1, too.

Signed-off-by: Paul Spooren <[email protected]>
  • Loading branch information
aparcar committed Mar 26, 2022
1 parent 7aad22a commit de4e6ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion asu/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,8 @@ def api_v1_build_post():
return response, status

req["store_path"] = current_app.config["STORE_PATH"]
req["cache_path"] = current_app.config.get("CACHE_PATH")
if current_app.config.get("CACHE_PATH"):
req["cache_path"] = current_app.config.get("CACHE_PATH")
req["upstream_url"] = current_app.config["UPSTREAM_URL"]
req["branch_data"] = current_app.config["BRANCHES"][req["branch"]]
req["request_hash"] = request_hash
Expand Down

0 comments on commit de4e6ca

Please sign in to comment.