Skip to content
Snippets Groups Projects

Feature/nat 329 validate interface names for migrate

1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -73,7 +73,8 @@ def _send_request(operation: CUDOperation, endpoint: str, parameters: dict, call
elif operation == CUDOperation.DELETE:
request = requests.delete(url, json=parameters, timeout=10000)
if request.status_code != HTTPStatus.OK:
if not HTTPStatus.OK <= request.status_code < HTTPStatus.MULTIPLE_CHOICES:
# :term:`LSO` has returned a status code that is outside the 2xx range, and has therefore failed
logger.debug(request.content)
raise AssertionError(request.content)
Loading