X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=lcm%2Flcm%2Fnf%2Fvnfs%2Fviews.py;h=de9cb480d7b8b0616f27d2a2a27de71656c414fe;hb=108cb656fd9e6dfa999e03c22bac459cfd825a95;hp=b93ce67c1081ed19624ab57d0dbd7736da7fe029;hpb=fc0218121a1186e849d51129f00c1b6b2e324c53;p=vfc%2Fgvnfm%2Fvnflcm.git diff --git a/lcm/lcm/nf/vnfs/views.py b/lcm/lcm/nf/vnfs/views.py index b93ce67c..de9cb480 100644 --- a/lcm/lcm/nf/vnfs/views.py +++ b/lcm/lcm/nf/vnfs/views.py @@ -38,7 +38,7 @@ class CreateVnfIdentifier(APIView): return Response(data={'error': '%s' % e.message}, status=status.HTTP_500_INTERNAL_SERVER_ERROR) except Exception: logger.error(traceback.format_exc()) - return Response(data='unexpected exception', status=status.HTTP_500_INTERNAL_SERVER_ERROR) + return Response(data={'error': 'unexpected exception'}, status=status.HTTP_500_INTERNAL_SERVER_ERROR) rsp = {"vnfInstanceId": nf_inst_id} return Response(data=rsp, status=status.HTTP_201_CREATED)