Skip to content

Commit

Permalink
self.version seems the wrong way to go
Browse files Browse the repository at this point in the history
  • Loading branch information
towo committed Dec 30, 2020
1 parent 55d1d0a commit 522dace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/cs_primitive/pcs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def _flush_resource(operations, parameters, utilization, metadatas)
# if we are using a multistate/promotable resource, prepend ms_ before its name
# and declare it as a multistate/promotable resource
if @property_hash[:promotable] == :true
if Gem::Version.new(self.version) < Gem::Version.new('0.10.0')
if Gem::Version.new(version) < Gem::Version.new('0.10.0')
cmd = [command(:pcs), pcs_subcommand, 'promotable', (@property_hash[:name]).to_s]
else
cmd = [command(:pcs), pcs_subcommand, 'master', "ms_#{@property_hash[:name]}", (@property_hash[:name]).to_s]
Expand Down

0 comments on commit 522dace

Please sign in to comment.