From d4650a41793249f4b541d56340f3ad2a114afc61 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 (cherry picked from commit f6de56a02c4f1db557211621f1a369e3f8cff615) --- 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 acc0c09362c..7cdd5cd02c6 100644 --- a/src/pybind/mgr/dashboard/services/iscsi_config.py +++ b/src/pybind/mgr/dashboard/services/iscsi_config.py @@ -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 -- 2.47.3