locale: make able to be turned off

This commit is contained in:
Scott Moser 2015-03-04 14:49:44 -05:00
parent 502a896dd6
commit cb63f29599

View File

@ -27,9 +27,9 @@ def handle(name, cfg, cloud, log, args):
else:
locale = util.get_cfg_option_str(cfg, "locale", cloud.get_locale())
if not locale:
log.debug(("Skipping module named %s, "
"no 'locale' configuration found"), name)
if util.is_false(locale):
log.debug("Skipping module named %s, disabled by config: %s",
name, locale)
return
log.debug("Setting locale to %s", locale)