From f1bd95884be20932a3ab7a92440e9e306902c1a0 Mon Sep 17 00:00:00 2001 From: "Modaboina, Kusumakumari (km583p)" Date: Tue, 20 Mar 2018 13:17:00 -0400 Subject: Bugfixes for error handling while attaching volume Change-Id: I103709186eff4fc9e42038b2e1113b010b822528 Issue-ID: APPC-761 Signed-off-by: Modaboina, Kusumakumari (km583p) --- .../java/org/onap/appc/requesthandler/conv/Converter.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'appc-dispatcher') diff --git a/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/conv/Converter.java b/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/conv/Converter.java index 68352c1b1..5aac95a42 100644 --- a/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/conv/Converter.java +++ b/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/conv/Converter.java @@ -18,7 +18,6 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * ECOMP is a trademark and service mark of AT&T Intellectual Property. * ============LICENSE_END========================================================= */ @@ -254,6 +253,16 @@ public class Converter { ((UpgradePreCheckOutputBuilder)outObj).setCommonHeader(commonHeader); ((UpgradePreCheckOutputBuilder)outObj).setStatus(status); return outObj; + case AttachVolume: + outObj = new AttachVolumeOutputBuilder(); + ((AttachVolumeOutputBuilder)outObj).setCommonHeader(commonHeader); + ((AttachVolumeOutputBuilder)outObj).setStatus(status); + return outObj; + case DetachVolume: + outObj = new DetachVolumeOutputBuilder(); + ((DetachVolumeOutputBuilder)outObj).setCommonHeader(commonHeader); + ((DetachVolumeOutputBuilder)outObj).setStatus(status); + return outObj; default: throw new IllegalArgumentException(action+" action is not supported"); } -- cgit 1.2.3-korg