locale: make able to be turned off
This commit is contained in:
parent
502a896dd6
commit
cb63f29599
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user