Merge "Fix RuntimeError when showing project which has extra properties"
This commit is contained in:
commit
e90b79be4c
@ -289,7 +289,7 @@ class ShowProject(command.ShowOne):
|
||||
# the API has and handle the extra top level properties.
|
||||
reserved = ('name', 'id', 'enabled', 'description')
|
||||
properties = {}
|
||||
for k, v in info.items():
|
||||
for k, v in list(info.items()):
|
||||
if k not in reserved:
|
||||
# If a key is not in `reserved` it's a property, pop it
|
||||
info.pop(k)
|
||||
|
5
releasenotes/notes/bug-1740232-91ad72c2ac165f35.yaml
Normal file
5
releasenotes/notes/bug-1740232-91ad72c2ac165f35.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
Fix RuntimeError in ``project show`` command running under Python 3.
|
||||
[Bug `1740232 <https://bugs.launchpad.net/python-openstackclient/+bug/1740232>`_]
|
Loading…
Reference in New Issue
Block a user