summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2018-09-05 13:23:40 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2018-09-05 13:23:40 +0800
commit2413303699535ab9b36ee235255e9dd991896ca8 (patch)
treeafd07668e4ca2f3319c74f105e2059ea18b92855
parent775d42e9e6ad146566964380ca999644cec27f65 (diff)
Fix swagger export error for catalog
Change-Id: I125042aa8a7c3e556ae3e2f930f789d34ee8a81f Issue-ID: VFC-1093 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r--catalog/packages/views/ns_descriptor_views.py4
-rw-r--r--catalog/packages/views/pnf_descriptor_views.py4
-rw-r--r--catalog/packages/views/vnf_package_views.py2
3 files changed, 5 insertions, 5 deletions
diff --git a/catalog/packages/views/ns_descriptor_views.py b/catalog/packages/views/ns_descriptor_views.py
index d47fb176..589ab8ee 100644
--- a/catalog/packages/views/ns_descriptor_views.py
+++ b/catalog/packages/views/ns_descriptor_views.py
@@ -46,7 +46,7 @@ logger = logging.getLogger(__name__)
operation_description="Delete a NSD",
request_body=no_body,
responses={
- status.HTTP_204_NO_CONTENT: None,
+ status.HTTP_204_NO_CONTENT: "No content",
status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"
}
)
@@ -138,7 +138,7 @@ def ns_descriptors_rc(request):
operation_description="Download NSD content",
request_body=no_body,
responses={
- status.HTTP_204_NO_CONTENT: None,
+ status.HTTP_204_NO_CONTENT: "No content",
status.HTTP_404_NOT_FOUND: 'NSD does not exist.',
status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"
}
diff --git a/catalog/packages/views/pnf_descriptor_views.py b/catalog/packages/views/pnf_descriptor_views.py
index 15d7e643..caa7ac23 100644
--- a/catalog/packages/views/pnf_descriptor_views.py
+++ b/catalog/packages/views/pnf_descriptor_views.py
@@ -46,7 +46,7 @@ logger = logging.getLogger(__name__)
operation_description="Delete a PNFD",
request_body=no_body,
responses={
- status.HTTP_204_NO_CONTENT: None,
+ status.HTTP_204_NO_CONTENT: "No content",
status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"
}
)
@@ -134,7 +134,7 @@ def pnf_descriptors_rc(request):
operation_description="Upload PNFD content",
request_body=no_body,
responses={
- status.HTTP_204_NO_CONTENT: None,
+ status.HTTP_204_NO_CONTENT: "No content",
status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"
}
)
diff --git a/catalog/packages/views/vnf_package_views.py b/catalog/packages/views/vnf_package_views.py
index 01eb5be2..da88dfd7 100644
--- a/catalog/packages/views/vnf_package_views.py
+++ b/catalog/packages/views/vnf_package_views.py
@@ -181,7 +181,7 @@ def upload_from_uri_c(request, **kwargs):
operation_description="Delete an individual VNF package resource",
request_body=no_body,
responses={
- status.HTTP_204_NO_CONTENT: None,
+ status.HTTP_204_NO_CONTENT: "No content",
status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"
}
)