Merge "Fix RuntimeError when showing project which has extra properties"

This commit is contained in:
Zuul 2019-05-17 23:07:57 +00:00 committed by Gerrit Code Review
commit e90b79be4c
2 changed files with 6 additions and 1 deletions

View File

@ -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)

View 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>`_]