diff --git a/wis2box-management/wis2box/api/__init__.py b/wis2box-management/wis2box/api/__init__.py index b9154e00..4bc8d662 100644 --- a/wis2box-management/wis2box/api/__init__.py +++ b/wis2box-management/wis2box/api/__init__.py @@ -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 @@ -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']