diff options
author | Sheel Rana <ranasheel2000@gmail.com> | 2016-01-31 19:28:30 +0530 |
---|---|---|
committer | Sheel Rana <ranasheel2000@gmail.com> | 2016-03-18 19:11:05 +0000 |
commit | 9877ebd7b1cffe1267286f9d1b21614571c5a31d (patch) | |
tree | 7ccc2fde8a328e3c161b109cbbc0045be63768bf | |
parent | 2cb21ee56eff1a3abd9f780b1e0f17d5eba5e578 (diff) | |
download | python-cinderclient-9877ebd7b1cffe1267286f9d1b21614571c5a31d.tar.gz |
is_public=N/A in output of cinder type-updateliberty-eolstable/liberty
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)
-rw-r--r-- | cinderclient/v2/volume_types.py | 3 |
1 files changed, 2 insertions, 1 deletions
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. |