Mercurial > prosody-hg
comparison util/prosodyctl/check.lua @ 11777:08de090e05e9
util.prosodyctl.check: Add TODO about replacements for deprecated settings
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 09 Sep 2021 22:10:12 +0200 |
| parents | 1132a1f1ca5a |
| children | f254fd16218a |
comparison
equal
deleted
inserted
replaced
| 11776:1132a1f1ca5a | 11777:08de090e05e9 |
|---|---|
| 173 if not deprecated_global_options:empty() then | 173 if not deprecated_global_options:empty() then |
| 174 print(""); | 174 print(""); |
| 175 print(" You have some deprecated options in the global section:"); | 175 print(" You have some deprecated options in the global section:"); |
| 176 print(" "..tostring(deprecated_global_options)) | 176 print(" "..tostring(deprecated_global_options)) |
| 177 ok = false; | 177 ok = false; |
| 178 -- FIXME show replacement options where applicable | |
| 178 end | 179 end |
| 179 for host, options in it.filter(function (h) return h ~= "*" end, pairs(configmanager.getconfig())) do | 180 for host, options in it.filter(function (h) return h ~= "*" end, pairs(configmanager.getconfig())) do |
| 180 local host_options = set.new(it.to_array(it.keys(options))); | 181 local host_options = set.new(it.to_array(it.keys(options))); |
| 181 local misplaced_options = set.intersection(host_options, known_global_options); | 182 local misplaced_options = set.intersection(host_options, known_global_options); |
| 182 for name in pairs(options) do | 183 for name in pairs(options) do |
