Skip to content

Commit

Permalink
Merge pull request #199 from chef-cookbooks/fix_shcluster_member_method
Browse files Browse the repository at this point in the history
Fixes logic in `#shcluster_members?` helper method with a better match
  • Loading branch information
haidangwa committed Nov 2, 2020
2 parents 6e29298 + 607a1f1 commit b4197aa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion libraries/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
maintainer_email '[email protected]'
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'
Expand Down

0 comments on commit b4197aa

Please sign in to comment.