Skip to content
Snippets Groups Projects
Verified Commit d31c559c authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

change error handling in provisioning_proxy

parent 9d9b8f23
No related branches found
No related tags found
1 merge request!12Add sites, and add integration of IPtrunks and routers with LSO deployment
This commit is part of merge request !12. Comments created here will be created in the context of that merge request.
......@@ -35,10 +35,11 @@ def provision_node(
}
post_request = requests.post(
f'{pp_params.scheme}://{pp_params.api_base}'
f'/api/device',
f'{pp_params.scheme}://{pp_params.api_base}/api/device',
json=parameters)
post_request.raise_for_status()
if post_request.status_code != 200:
raise AssertionError(post_request.text)
@inputstep('Await provisioning proxy results', assignee=Assignee('SYSTEM'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment