diff --git a/lib/puppet/provider/cs_primitive/pcs.rb b/lib/puppet/provider/cs_primitive/pcs.rb index 0dbe5fe1..7c7760dc 100644 --- a/lib/puppet/provider/cs_primitive/pcs.rb +++ b/lib/puppet/provider/cs_primitive/pcs.rb @@ -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]