]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: iterate through copy of items 46870/head
authorPedro Gonzalez Gomez <pegonzal@redhat.com>
Mon, 6 Jun 2022 08:32:49 +0000 (10:32 +0200)
committerPedro Gonzalez Gomez <pegonzal@redhat.com>
Tue, 28 Jun 2022 11:40:23 +0000 (13:40 +0200)
Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
(cherry picked from commit f6de56a02c4f1db557211621f1a369e3f8cff615)

src/pybind/mgr/dashboard/services/iscsi_config.py

index acc0c09362cee6dfeae858b658c494dc550ffb32..7cdd5cd02c62b3879b55a09f7358e0e565740db9 100644 (file)
@@ -55,7 +55,7 @@ class IscsiGatewaysConfig(object):
         If Ceph Dashboard were configured before v10, we try to update our internal gateways
         database automatically.
         """
-        for gateway_name, gateway_config in config['gateways'].items():
+        for gateway_name, gateway_config in list(config['gateways'].items()):
             if '.' not in gateway_name:
                 from ..rest_client import RequestException
                 from .iscsi_client import IscsiClient  # pylint: disable=cyclic-import