aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryangyanyj <yangyanyj@chinamobile.com>2018-08-02 12:41:55 +0800
committeryangyanyj <yangyanyj@chinamobile.com>2018-08-02 12:45:24 +0800
commitc9e02c282656ccb6ea61ab7104de427ff63130c2 (patch)
tree96c28cc504231c8c5010af7ecfefe693458b01fe
parentbe8971136b637f8cf61322163230298ccfbbe193 (diff)
Fix serializer bug
Change-Id: I4caf42aad3e6395aae2bdd87c757836e109dc9c5 Issue-ID: VFC-1007 Signed-off-by: yangyanyj <yangyanyj@chinamobile.com>
-rw-r--r--lcm/ns/vnfs/serializers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lcm/ns/vnfs/serializers.py b/lcm/ns/vnfs/serializers.py
index ae32d2f7..652cf7e8 100644
--- a/lcm/ns/vnfs/serializers.py
+++ b/lcm/ns/vnfs/serializers.py
@@ -203,9 +203,9 @@ class VnfmInfoRespSerializer(serializers.Serializer):
version = serializers.CharField(help_text="Version of VNFM", required=False, allow_null=True, allow_blank=True)
description = serializers.CharField(help_text="Description of VNFM", required=False, allow_null=True, allow_blank=True)
certificateUrl = serializers.CharField(help_text="Certificate PEM of VNFM", required=False, allow_null=True, allow_blank=True)
- url = serializers.CharField(help_text="url of VNFM", required=True)
- userName = serializers.CharField(help_text="User Name of VNFM", required=True)
- password = serializers.CharField(help_text="Password of VNFM", required=True)
+ url = serializers.CharField(help_text="url of VNFM", required=False, allow_null=True, allow_blank=True)
+ userName = serializers.CharField(help_text="User Name of VNFM", required=False, allow_null=True, allow_blank=True)
+ password = serializers.CharField(help_text="Password of VNFM", required=False, allow_null=True, allow_blank=True)
createTime = serializers.CharField(help_text="Create Time of VNFM", required=False, allow_null=True, allow_blank=True)