diff --git a/cloudinit/stages.py b/cloudinit/stages.py index d7211eb6..07c55802 100644 --- a/cloudinit/stages.py +++ b/cloudinit/stages.py @@ -375,8 +375,9 @@ class Init(object): mod = importer.import_module(mod_locs[0]) mod = handlers.fixup_handler(mod) types = c_handlers.register(mod) - LOG.debug("Added custom handler for %s from %s", types, - fname) + if types: + LOG.debug("Added custom handler for %s from %s", + types, fname) except Exception: util.logexc(LOG, "Failed to register handler from %s", fname)