Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/puppet/provider/pcmk_constraint/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def create
cmd = 'constraint location add ' + resource_name + ' ' + resource_resource + ' ' + @resource[:location] + ' ' + @resource[:score]
when :colocation
resource_location = @resource[:location].gsub(':', '.')
if @resource[:master_slave]
if @resource[:master_slave] == :true
cmd = 'constraint colocation add ' + resource_resource + ' with master ' + resource_location + ' ' + @resource[:score]
else
cmd = 'constraint colocation add ' + resource_resource + ' with ' + resource_location + ' ' + @resource[:score]
Expand Down Expand Up @@ -50,7 +50,7 @@ def exists?
when :location
return true if line.include? resource_name
when :colocation
if @resource[:master_slave]
if @resource[:master_slave] == :true
return true if line.include? resource_resource + ' with ' + resource_location and line.include? "with-rsc-role:Master"
else
return true if line.include? resource_resource + ' with ' + resource_location
Expand Down