From f6de56a02c4f1db557211621f1a369e3f8cff615 Mon Sep 17 00:00:00 2001 From: Pedro Gonzalez Gomez Date: Mon, 6 Jun 2022 10:32:49 +0200 Subject: [PATCH] mgr/dashboard: iterate through copy of items Signed-off-by: Pedro Gonzalez Gomez --- src/pybind/mgr/dashboard/services/iscsi_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/services/iscsi_config.py b/src/pybind/mgr/dashboard/services/iscsi_config.py index f1818c1986c..c1898a463ca 100644 --- a/src/pybind/mgr/dashboard/services/iscsi_config.py +++ b/src/pybind/mgr/dashboard/services/iscsi_config.py @@ -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 -- 2.39.5