]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr/restful: use dict.items() for py3 compatibility 29356/head
authorKefu Chai <kchai@redhat.com>
Fri, 26 Jul 2019 14:43:00 +0000 (22:43 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 29 Jul 2019 09:17:51 +0000 (17:17 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/restful/common.py

index 6eb3e416a800f017a5785aabaaffa715a1601b82..9e4e18bbde0f28dcccad1bf03baed67c6530d693 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)))