diff options
author | Dmitriy Alekseev <1865999+dragoangel@users.noreply.github.com> | 2024-10-14 14:35:24 +0200 |
---|---|---|
committer | Dmitriy Alekseev <1865999+dragoangel@users.noreply.github.com> | 2024-10-14 14:35:24 +0200 |
commit | 28b772738c09661bb9845cb7330c2381eb143404 (patch) | |
tree | a0f6a1c821c00224134b7e5b4a535691fd56667a | |
parent | 8b46d65e54b0447459edd1f7c2c586325a6350e5 (diff) | |
download | rspamd-28b772738c09661bb9845cb7330c2381eb143404.tar.gz rspamd-28b772738c09661bb9845cb7330c2381eb143404.zip |
add missing change in configured state when no update is needed on index_policy
-rw-r--r-- | src/plugins/lua/elastic.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/lua/elastic.lua b/src/plugins/lua/elastic.lua index b2c6d36ba..b117d6e4c 100644 --- a/src/plugins/lua/elastic.lua +++ b/src/plugins/lua/elastic.lua @@ -823,7 +823,10 @@ local function get_index_policy(cfg, ev_base, upstream, host, policy_url, index_ update_needed = true end end - if update_needed then + if not update_needed then + rspamd_logger.infox(rspamd_config, 'elastic index policy is up-to-date') + states['index_policy']['configured'] = true + else if detected_distro['name'] == 'elastic' then put_index_policy(cfg, ev_base, upstream, host, policy_url, index_policy_json) elseif detected_distro['name'] == 'opensearch' then |