Skip to content

Commit

Permalink
(maint) pin pdk-templates version ref to workaround puppet 5.3.4 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bmjen committed Feb 6, 2018
1 parent b5f4fe6 commit 4efaba9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions lib/pdk/util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,12 @@ def default_template_ref
module_function :default_template_ref

def puppetlabs_template_ref
if PDK::Util.development_mode?
PDK::TEMPLATE_REF #'origin/master'
else
PDK::TEMPLATE_REF
end
PDK::TEMPLATE_REF
# if PDK::Util.development_mode?
# 'origin/master'
# else
# PDK::TEMPLATE_REF
# end
end
module_function :puppetlabs_template_ref
end
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/pdk/util_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@
end

it 'returns origin/master' do
is_expected.to eq('origin/master')
is_expected.to eq('e07e4fdef2cf410a7006a3612f53ef1563ea829f') # 'origin/master')
end
end
end
Expand Down

0 comments on commit 4efaba9

Please sign in to comment.