summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openstackclient/identity/v2_0/project.py2
-rw-r--r--releasenotes/notes/bug-1740232-91ad72c2ac165f35.yaml5
2 files changed, 6 insertions, 1 deletions
diff --git a/openstackclient/identity/v2_0/project.py b/openstackclient/identity/v2_0/project.py
index 04d422ec..9bb5fc4d 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 00000000..fb9ad7be
--- /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 <https://bugs.launchpad.net/python-openstackclient/+bug/1740232>`_]