]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr/restful: use dict.items() for py3 compatibility 36670/head
authorKefu Chai <kchai@redhat.com>
Fri, 26 Jul 2019 14:43:00 +0000 (22:43 +0800)
committerNathan Cutler <ncutler@suse.com>
Sat, 15 Aug 2020 21:30:21 +0000 (23:30 +0200)
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit a46292b254bb0ea6a1fc13475989659ce96276b3)

src/pybind/mgr/restful/common.py

index f44ba26396e3beeba4f27642299fa2aae2795c6a..fbe5e208670d0bcd4b8a3b657655f4a80bf03113 100644 (file)
@@ -34,7 +34,7 @@ POOL_ARGS = POOL_PROPERTIES + [x for x,_ in POOL_QUOTA_PROPERTIES]
 def humanify_command(command):
     out = [command['prefix']]
 
-    for arg, val in command.iteritems():
+    for arg, val in command.items():
         if arg != 'prefix':
             out.append("%s=%s" % (str(arg), str(val)))