From 6b1fda49736a9a5d15385892ae5876aef07ad7bc Mon Sep 17 00:00:00 2001 From: hetengjiao Date: Thu, 29 Oct 2020 11:18:50 +0800 Subject: modify subnetCapabilityQuery interface and some workflow error Issue-ID: SO-2963 Signed-off-by: hetengjiao Change-Id: Ieda037b617f3743a28aaba30e7f22bf5df919a24 --- .../groovy/org/onap/so/bpmn/common/scripts/DoHandleOofRequest.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bpmn/MSOCommonBPMN') diff --git a/bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/DoHandleOofRequest.groovy b/bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/DoHandleOofRequest.groovy index 644cf5e387..1964a189f1 100644 --- a/bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/DoHandleOofRequest.groovy +++ b/bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/DoHandleOofRequest.groovy @@ -95,7 +95,7 @@ class DoHandleOofRequest extends AbstractServiceTaskProcessor { Response httpResponse = httpClient.post(oofRequest) int responseCode = httpResponse.getStatus() logger.debug("OOF sync response code is: " + responseCode) - if(responseCode != 200){ + if(responseCode < 200 || responseCode >= 300){ exceptionUtil.buildAndThrowWorkflowException(execution, responseCode, "Received a Bad Sync Response from OOF.") } } -- cgit 1.2.3-korg