diff --git a/CHANGELOG.md b/CHANGELOG.md index 99e232a2..195411f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ This file is used to list changes made in each version of the splunk cookbook. +## 7.0.3 (2020-11-02) +- Fixes logic in `#shcluster_members?` helper method with a regular expression match + ## 7.0.2 (2020-10-30) - Fix centos-6 and Amazon linux convergence by adding an only_if to only create systemd symlinks on systemd systems. - Adds clarification text to README.md regarding chef-vault fallback to encrypted data bags diff --git a/libraries/helpers.rb b/libraries/helpers.rb index 0dcd1429..511e9aea 100644 --- a/libraries/helpers.rb +++ b/libraries/helpers.rb @@ -231,7 +231,7 @@ def shcluster_members_ipv4 end def shcluster_member? - shcluster_members_ipv4.include? node['ipaddress'] + shcluster_members_ipv4.include? "host_port_pair:#{node['ipaddress']}:8089" end def shcaptain_elected? diff --git a/metadata.rb b/metadata.rb index 768869e4..8fe729d2 100644 --- a/metadata.rb +++ b/metadata.rb @@ -3,7 +3,7 @@ maintainer_email 'cookbooks@chef.io' license 'Apache-2.0' description 'Manage Splunk Enterprise or Splunk Universal Forwarder' -version '7.0.2' +version '7.0.3' supports 'debian', '>= 8.9' supports 'ubuntu', '>= 16.04'