Skip to content

Commit 680149f

Browse files
authored
Merge pull request #1123 from eimlav/version-fix
(maint) - Change versioning comparison
2 parents 25a5609 + 477a1a0 commit 680149f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/spec_helper_acceptance.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
run_puppet_access_login(user: 'admin') if pe_install? && puppet_version =~ %r{(5\.\d\.\d)}
3232
hosts.each do |host|
3333
# This will be removed, this is temporary to test localisation.
34-
if (fact('osfamily') == 'Debian' || fact('osfamily') == 'RedHat') && (puppet_version >= '4.10.5' && puppet_version < '5.2.0')
34+
if (fact('osfamily') == 'Debian' || fact('osfamily') == 'RedHat') && (Gem::Version.new(puppet_version) >= Gem::Version.new('4.10.5') &&
35+
Gem::Version.new(puppet_version) < Gem::Version.new('5.2.0'))
3536
on(host, 'mkdir /opt/puppetlabs/puppet/share/locale/ja')
3637
on(host, 'touch /opt/puppetlabs/puppet/share/locale/ja/puppet.po')
3738
end

0 commit comments

Comments
 (0)