Skip to content

Commit ccabfd3

Browse files
committed
(PE-20308) Correct boundary for 4.5 vs 4.6
1 parent 047fe6d commit ccabfd3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/puppet/parser/functions/defined_with_params.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
end
2626
ret = false
2727

28-
if Puppet::Util::Package.versioncmp(Puppet.version, '4.5.0') >= 0
28+
if Puppet::Util::Package.versioncmp(Puppet.version, '4.6.0') >= 0
2929
# Workaround for PE-20308
3030
if reference.is_a?(String)
3131
type_name, title = Puppet::Resource.type_and_title(reference, nil)

spec/functions/defined_with_params_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
context 'reference' do
4646
it { is_expected.to run.with_params(Puppet::Resource.new('User[dan]'), {}).and_return(true) }
4747
end
48-
if Puppet::Util::Package.versioncmp(Puppet.version, '4.5.0') >= 0
48+
if Puppet::Util::Package.versioncmp(Puppet.version, '4.6.0') >= 0
4949
context 'array' do
5050
it 'fails' do
5151
expect {

0 commit comments

Comments
 (0)