]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: iterate through copy of items 46871/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:42:34 +0000 (13:42 +0200)
Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
(cherry picked from commit f6de56a02c4f1db557211621f1a369e3f8cff615)

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

index f1818c1986c2600703f5a23af0317a3595eb15ab..c1898a463cac96f8f85e5136ad33c683b09c7b9f 100644 (file)
@@ -54,7 +54,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