lib/librarian/puppet/source/forge.rb in librarian-puppet-2.2.3 vs lib/librarian/puppet/source/forge.rb in librarian-puppet-3.0.0

- old
+ new

@@ -156,10 +156,11 @@ def repo(name) @repo ||= {} unless @repo[name] - # if we are using the official Forge then use API v3, otherwise stick to v1 for now + # If we are using the official Forge then use API v3, otherwise use the preferred api + # as defined by the CLI option use_v1_api if uri.hostname =~ /\.puppetlabs\.com$/ || !environment.use_v1_api @repo[name] = RepoV3.new(self, name) else @repo[name] = RepoV1.new(self, name) end