Skip to content

Commit

Permalink
pybind/mgr/volumes: use py3 items iterator
Browse files Browse the repository at this point in the history
Otherwise this raises an exception.

Fixes: https://tracker.ceph.com/issues/43113
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
  • Loading branch information
batrick committed Dec 4, 2019
1 parent b45c08b commit 03f8080
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pybind/mgr/volumes/fs/volume.py
Expand Up @@ -128,7 +128,7 @@ def __init__(self, mgr):
def cleanup_connections(self):
with self.lock:
log.info("scanning for idle connections..")
idle_fs = [fs_name for fs_name,conn in self.connections.iteritems()
idle_fs = [fs_name for fs_name,conn in self.connections.items()
if conn.is_connection_idle(ConnectionPool.CONNECTION_IDLE_INTERVAL)]
for fs_name in idle_fs:
log.info("cleaning up connection for '{}'".format(fs_name))
Expand Down

0 comments on commit 03f8080

Please sign in to comment.