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 7d1e4d9baf)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user