# HG changeset patch # User Matthew Wild # Date 1739637070 0 # Node ID a988867a556750f029ae9ddd65af08b060bff075 # Parent 5f1eb8b149233150cdea6f62ccd1e76b05048cd2 util.prosodyctl.check: Sort hosts in iterator for more stable output diff -r 5f1eb8b14923 -r a988867a5567 util/prosodyctl/check.lua --- 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();