Mercurial > prosody-modules
diff mod_auto_activate_hosts/mod_auto_activate_hosts.lua @ 1343:7dbde05b48a9
all the things: Remove trailing whitespace
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Tue, 11 Mar 2014 18:44:01 +0100 |
parents | 8285c3502100 |
children | 8b7bca07f5c0 |
line wrap: on
line diff
--- a/mod_auto_activate_hosts/mod_auto_activate_hosts.lua Mon Mar 10 08:22:58 2014 +0000 +++ b/mod_auto_activate_hosts/mod_auto_activate_hosts.lua Tue Mar 11 18:44:01 2014 +0100 @@ -19,13 +19,13 @@ local enabled_hosts = set.new(array.collect(it.keys(new_config)):filter(host_is_enabled):filter(host_not_global)); local need_to_activate = enabled_hosts - active_hosts; local need_to_deactivate = active_hosts - enabled_hosts; - + module:log("debug", "Config reloaded... %d hosts need activating, and %d hosts need deactivating", it.count(need_to_activate), it.count(need_to_deactivate)); - module:log("debug", "There are %d enabled and %d active hosts", it.count(enabled_hosts), it.count(active_hosts)); + module:log("debug", "There are %d enabled and %d active hosts", it.count(enabled_hosts), it.count(active_hosts)); for host in need_to_deactivate do hostmanager.deactivate(host); end - + -- If the lazy loader is loaded, hosts will get activated when they are needed if not(getmetatable(prosody.hosts) and getmetatable(prosody.hosts).lazy_loader) then for host in need_to_activate do