summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2018-11-13 09:03:59 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2018-11-13 09:03:59 +0800
commit2d398c5745587104a290a1437fbdf19f4cb348cd (patch)
tree75f0e1d595d2066300ae3ef073a3dc8fd2192c70
parent98cb202da1f53b113e6f8e2eb3a4c2536eedb9c7 (diff)
Fix vnf grant resp logic
Change-Id: I714959589a063f3a62f4892aba6410020235f3b4 Issue-ID: VFC-1163 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r--gvnfmadapter/driver/interfaces/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gvnfmadapter/driver/interfaces/views.py b/gvnfmadapter/driver/interfaces/views.py
index e6c26fc..7cbbfb8 100644
--- a/gvnfmadapter/driver/interfaces/views.py
+++ b/gvnfmadapter/driver/interfaces/views.py
@@ -265,7 +265,8 @@ class VnfGrantInfo(APIView):
resp = json.JSONDecoder().decode(ret[1])
grant = GrantSerializer(data=resp)
if not grant.is_valid():
- raise GvnfmDriverException(grant.error_messages)
+ logger.warn(grant.error_messages)
+ # raise GvnfmDriverException(grant.error_messages)
logger.debug("[%s]resp_data=%s", fun_name(), resp)
return Response(data=resp, status=status.HTTP_201_CREATED)
except GvnfmDriverException as e: