Otherwise this raises an exception.
Fixes: https://tracker.ceph.com/issues/43113
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
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))