From 9877ebd7b1cffe1267286f9d1b21614571c5a31d Mon Sep 17 00:00:00 2001 From: Sheel Rana Date: Sun, 31 Jan 2016 19:28:30 +0530 Subject: is_public=N/A in output of cinder type-update In output of cinder type-update execution, is_public field always displays N/A. This is due to wrong usage of @property for is_public field in code. Change-Id: I1d76c3d5c937f5c16c668bd114e2df7dfc62f2f8 Closes-Bug: #1538412 (cherry picked from commit 7d1e4d9baf76a2e42424acdaeb37265f8bdcfff1) --- cinderclient/v2/volume_types.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cinderclient/v2/volume_types.py b/cinderclient/v2/volume_types.py index 598004f..ff38bea 100644 --- a/cinderclient/v2/volume_types.py +++ b/cinderclient/v2/volume_types.py @@ -29,7 +29,8 @@ class VolumeType(base.Resource): """ Provide a user-friendly accessor to os-volume-type-access:is_public """ - return self._info.get("os-volume-type-access:is_public", 'N/A') + return self._info.get("os-volume-type-access:is_public", + self._info.get("is_public", 'N/A')) def get_keys(self): """Get extra specs from a volume type. -- cgit v1.2.1