summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_package_update_upgrade_install.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/config/cc_package_update_upgrade_install.py')
-rw-r--r--cloudinit/config/cc_package_update_upgrade_install.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cloudinit/config/cc_package_update_upgrade_install.py b/cloudinit/config/cc_package_update_upgrade_install.py
index 73b0e30d..86e1d25b 100644
--- a/cloudinit/config/cc_package_update_upgrade_install.py
+++ b/cloudinit/config/cc_package_update_upgrade_install.py
@@ -49,6 +49,8 @@ def _fire_reboot(log, wait_attempts=6, initial_sleep=1, backoff=2):
def handle(_name, cfg, cloud, log, _args):
+ if cloud.is_excluded(_name):
+ return
# Handle the old style + new config names
update = _multi_cfg_bool_get(cfg, 'apt_update', 'package_update')
upgrade = _multi_cfg_bool_get(cfg, 'package_upgrade', 'apt_upgrade')