diff --git a/moduleroot/Gemfile.erb b/moduleroot/Gemfile.erb index bf4100dee25e8979caed68f10affaa8f2843f79d..09373901d315c75bfc5f7c334a0c2c6be8b26b95 100644 --- a/moduleroot/Gemfile.erb +++ b/moduleroot/Gemfile.erb @@ -112,8 +112,8 @@ hiera_version = ENV.fetch('HIERA_GEM_VERSION', nil) # If PUPPET_FORGE_TOKEN is set then use authenticated source for both puppet and facter, since facter is a transitive dependency of puppet # Otherwise, do as before and use location_for to fetch gems from the default source if !ENV['PUPPET_FORGE_TOKEN'].to_s.empty? - gems['puppet'] = [puppet_version || '~> 8.11', { require: false, source: 'https://rubygems-puppetcore.puppet.com' }] - gems['facter'] = [facter_version || '~> 4.11', { require: false, source: 'https://rubygems-puppetcore.puppet.com' }] + gems['puppet'] = ['~> 8.11', { require: false, source: 'https://rubygems-puppetcore.puppet.com' }] + gems['facter'] = ['~> 4.11', { require: false, source: 'https://rubygems-puppetcore.puppet.com' }] else gems['puppet'] = location_for(puppet_version) gems['facter'] = location_for(facter_version) if facter_version