From fae9bf858aa772e6c1ff400df661ae4412422152 Mon Sep 17 00:00:00 2001 From: Yaguo Zhou Date: Wed, 22 Nov 2017 15:08:35 +0800 Subject: [PATCH] Make the name of CPUInfo type more friendly Since code is 'json.loads(value)', it's more firendly to tell users the expected format should be JSON string Change-Id: Ib79fbb36e149780d47b758763c4ac13aae552f1f --- blazar/api/v2/controllers/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blazar/api/v2/controllers/types.py b/blazar/api/v2/controllers/types.py index bd764491..d1cf1baf 100644 --- a/blazar/api/v2/controllers/types.py +++ b/blazar/api/v2/controllers/types.py @@ -73,7 +73,7 @@ class CPUInfo(wtypes.UserType): """A type for matching CPU info from hypervisors.""" basetype = wtypes.text - name = 'cpuinfo' + name = 'cpuinfo as JSON formated str' @staticmethod def validate(value):