diff options
author | ying.yunlong <ying.yunlong@zte.com.cn> | 2018-01-29 14:12:43 +0800 |
---|---|---|
committer | ying.yunlong <ying.yunlong@zte.com.cn> | 2018-01-29 14:12:43 +0800 |
commit | 3ec6326547d6b5f6f8d8a97d138eecf51eaa8ead (patch) | |
tree | a2503b4d38d0248c9e12f95f2d43dcac92b6e5d6 | |
parent | 6514f80c64f28be1acfef606ae85f357b42fc684 (diff) |
Fix vfc-vnfres schema bug
Change-Id: I13313141cc7746836a21e521003f9d886934db5d
Issue-ID: VFC-679
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
-rw-r--r-- | res/res/resources/serializers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res/resources/serializers.py b/res/res/resources/serializers.py index ab3074b..bcfdc7e 100644 --- a/res/res/resources/serializers.py +++ b/res/res/resources/serializers.py @@ -19,7 +19,7 @@ class VmResponseSerializer(serializers.Serializer): vmid = serializers.CharField(help_text="vmid", required=True) vimid = serializers.CharField(help_text="the vim id", required=True) resouceid = serializers.CharField(help_text="the resouce id", required=True) - tenant = serializers.IntegerField(help_text="tenant", required=True, allow_null=True) + tenant = serializers.CharField(help_text="tenant", required=True, allow_null=True) instid = serializers.CharField(help_text="the inst id", required=True) vmname = serializers.CharField(help_text="vmname", required=True) insttype = serializers.IntegerField(help_text="insttype", required=True) @@ -42,7 +42,7 @@ class FlavorResponseSerializer(serializers.Serializer): flavourid = serializers.CharField(help_text="flavourid", required=True) vimid = serializers.CharField(help_text="the vim id", required=True) resouceid = serializers.CharField(help_text="the resouce id", required=True) - tenant = serializers.IntegerField(help_text="tenant", required=True, allow_null=True) + tenant = serializers.CharField(help_text="tenant", required=True, allow_null=True) instid = serializers.CharField(help_text="the inst id", required=True) name = serializers.CharField(help_text="name", required=True) extraspecs = serializers.CharField(help_text="extraspecs", required=True) |