diff --git a/openstackclient/identity/v2_0/project.py b/openstackclient/identity/v2_0/project.py index 04d422ecdb..9bb5fc4d08 100644 --- a/openstackclient/identity/v2_0/project.py +++ b/openstackclient/identity/v2_0/project.py @@ -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) diff --git a/releasenotes/notes/bug-1740232-91ad72c2ac165f35.yaml b/releasenotes/notes/bug-1740232-91ad72c2ac165f35.yaml new file mode 100644 index 0000000000..fb9ad7be04 --- /dev/null +++ b/releasenotes/notes/bug-1740232-91ad72c2ac165f35.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fix RuntimeError in ``project show`` command running under Python 3. + [Bug `1740232 `_]