diff options
author | Matthew Wild <mwild1@gmail.com> | 2025-02-15 16:31:10 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2025-02-15 16:31:10 +0000 |
commit | fb733fb549cd8363c83fba2da889bd49d77afe2f (patch) | |
tree | b67e5cd0933e7677a5f7264fa6e2fc5134e96d0c /util/prosodyctl | |
parent | 35e48b2bac67c93957a0a06087f767184a163d2b (diff) | |
download | prosody-fb733fb549cd8363c83fba2da889bd49d77afe2f.tar.gz prosody-fb733fb549cd8363c83fba2da889bd49d77afe2f.zip |
util.prosodyctl.check: Sort hosts in iterator for more stable output
Diffstat (limited to 'util/prosodyctl')
-rw-r--r-- | util/prosodyctl/check.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/prosodyctl/check.lua b/util/prosodyctl/check.lua index 6c563498..f1b530d9 100644 --- a/util/prosodyctl/check.lua +++ b/util/prosodyctl/check.lua @@ -325,7 +325,7 @@ local function check(arg) 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(); |