Fix ns pkg upload error msg 13/71113/1
authorfujinhua <fu.jinhua@zte.com.cn>
Wed, 24 Oct 2018 01:39:38 +0000 (09:39 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Wed, 24 Oct 2018 01:39:38 +0000 (09:39 +0800)
Change-Id: I8934ff2fb905a971aa13fdf784a9fb6df8117bf3
Issue-ID: VFC-1163
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
catalog/packages/views/ns_descriptor_views.py

index ff3d5f1..942033e 100644 (file)
@@ -161,7 +161,7 @@ def nsd_content_ru(request, **kwargs):
             NsDescriptor().handle_upload_failed(nsd_info_id)
             logger.error(e.message)
             logger.error(traceback.format_exc())
-            error_data = {'error': 'Uploading NSD(%s) failed.'}
+            error_data = {'error': 'Uploading NSD(%s) failed.' % nsd_info_id}
         return Response(data=error_data, status=status.HTTP_500_INTERNAL_SERVER_ERROR)
 
     if request.method == 'GET':