Skip to content

Commit

Permalink
BZ #1290684 - Replace regex to accommodate change in crm_mode output
Browse files Browse the repository at this point in the history
Remove the regex used and just grab the second column of the output
from the crm_mode command to get members.
  • Loading branch information
gouthampacha committed Jan 12, 2016
1 parent d18e973 commit 30ffece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion puppet/modules/quickstack/templates/ha-all-in-one-util.erb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ all_members_include() {
scope.lookupvar("::operatingsystemrelease").match(/^6\.5.*/) %>
members=$(/usr/sbin/crm_node -l)
<% else %>
members=$(/usr/sbin/crm_node -l | perl -p -e 's/^.*\s+(\S+)$/$1/g')
members=$(/usr/sbin/crm_node -l | awk '{print $2}')
<% end %>
if [ "x${members}" = "x" ]; then return 1; fi
for member in $members; do
Expand Down

0 comments on commit 30ffece

Please sign in to comment.