summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_migrator.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/config/cc_migrator.py')
-rw-r--r--cloudinit/config/cc_migrator.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cloudinit/config/cc_migrator.py b/cloudinit/config/cc_migrator.py
index facaa538..b9a012f5 100644
--- a/cloudinit/config/cc_migrator.py
+++ b/cloudinit/config/cc_migrator.py
@@ -75,6 +75,8 @@ def _migrate_legacy_sems(cloud, log):
def handle(name, cfg, cloud, log, _args):
+ if cloud.is_excluded(name):
+ return
do_migrate = util.get_cfg_option_str(cfg, "migrate", True)
if not util.translate_bool(do_migrate):
log.debug("Skipping module named %s, migration disabled", name)