From: Pedro Gonzalez Gomez Date: Mon, 6 Jun 2022 08:32:49 +0000 (+0200) Subject: mgr/dashboard: iterate through copy of items X-Git-Tag: v16.2.11~469^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F46870%2Fhead;p=ceph.git mgr/dashboard: iterate through copy of items Signed-off-by: Pedro Gonzalez Gomez (cherry picked from commit f6de56a02c4f1db557211621f1a369e3f8cff615) --- diff --git a/src/pybind/mgr/dashboard/services/iscsi_config.py b/src/pybind/mgr/dashboard/services/iscsi_config.py index acc0c09362ce..7cdd5cd02c62 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