Skip to content

Commit

Permalink
fix job-location url
Browse files Browse the repository at this point in the history
  • Loading branch information
maaikelimper committed Jan 26, 2024
1 parent e2eff5b commit 9438f44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wis2box-management/wis2box/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def execute_api_process(process_name: str, payload: dict) -> dict:

headers_json = dict(response.headers)
location = headers_json['Location']
location.replace(API_URL, DOCKER_API_URL)

status = 'accepted'
response_json = None
Expand All @@ -72,7 +73,6 @@ def execute_api_process(process_name: str, payload: dict) -> dict:
'accept': 'application/json',
'Content-Type': 'application/json'
}
location.replace(API_URL, DOCKER_API_URL)
response = requests.get(location, headers=headers)
response_json = response.json()
status = response_json['status']
Expand Down

0 comments on commit 9438f44

Please sign in to comment.