You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding params << "resource-discovery=#{@property_hash[:resource_discovery]}" if count.zero? unless @property_hash[:resource_discovery].nil? to the following block should fix the issue but I haven't tested this yet:
Currently I am unable to use the crm provider because of #447 and the pcs provider because of this issue.
The text was updated successfully, but these errors were encountered:
qcfabrizio
changed the title
Can't set resource_discovery when using rules in the cs_location pcs provider
Provider pcs for cs_location type does not set resource_discovery when using rules
Sep 11, 2018
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
Create a
cs_location
which does not setnode_name
but does setrules
.What are you seeing
The constraint is created without the
resource-discovery
attribute being set.What behaviour did you expect instead
The
resource-discovery
attribute to be set.Any additional information you'd like to impart
Looking at the source, resource discovery is only set when a node is specified:
puppet-corosync/lib/puppet/provider/cs_location/pcs.rb
Line 91 in ad4f942
Adding
params << "resource-discovery=#{@property_hash[:resource_discovery]}" if count.zero? unless @property_hash[:resource_discovery].nil?
to the following block should fix the issue but I haven't tested this yet:puppet-corosync/lib/puppet/provider/cs_location/pcs.rb
Lines 108 to 112 in d77784a
Currently I am unable to use the crm provider because of #447 and the pcs provider because of this issue.
The text was updated successfully, but these errors were encountered: