Software /
code /
prosody
Changeset
13706:a988867a5567 13.0
util.prosodyctl.check: Sort hosts in iterator for more stable output
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 15 Feb 2025 16:31:10 +0000 |
parents | 13705:5f1eb8b14923 |
children | 13707:6c59b9072871 |
files | util/prosodyctl/check.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util/prosodyctl/check.lua Sat Feb 15 16:29:32 2025 +0000 +++ b/util/prosodyctl/check.lua Sat Feb 15 16:31:10 2025 +0000 @@ -325,7 +325,7 @@ local ok = true; local function contains_match(hayset, needle) for member in hayset do if member:find(needle) then return true end end end local function disabled_hosts(host, conf) return host ~= "*" and conf.enabled ~= false; end - local function enabled_hosts() return it.filter(disabled_hosts, pairs(configmanager.getconfig())); end + local function enabled_hosts() return it.filter(disabled_hosts, it.sorted_pairs(configmanager.getconfig())); end local checks = {}; function checks.disabled() local disabled_hosts_set = set.new();