Skip to content

Commit

Permalink
access jobs-url from within docker-stack by replacing url !
Browse files Browse the repository at this point in the history
  • Loading branch information
maaikelimper committed Jan 25, 2024
1 parent 510314e commit e2eff5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wis2box-management/wis2box/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from wis2box import cli_helpers
from wis2box.api.backend import load_backend
from wis2box.api.config import load_config
from wis2box.env import DOCKER_API_URL
from wis2box.env import API_URL, DOCKER_API_URL

LOGGER = logging.getLogger(__name__)

Expand Down Expand Up @@ -72,6 +72,7 @@ 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 e2eff5b

Please sign in to comment.