Skip to content

Commit

Permalink
(FM-8553) use the dedicated rsapi function
Browse files Browse the repository at this point in the history
puppetlabs/puppet-resource_api#187 implemented a dedicated function in the Resource API to load and return all transport schemas. Use it here now.
  • Loading branch information
DavidS authored Sep 20, 2019
1 parent 7efd8af commit 30b2d0a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/ruby/puppetserver-lib/puppet/server/master.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,7 @@ def getClassInfoForEnvironment(env)

def getTransportInfoForEnvironment(env)
require 'puppet/resource_api/transport'

environment = @env_loader.get!(env)
Puppet.override({current_environment: environment}) do
@transports_loader.loadall(environment)
Puppet::ResourceApi::Transport.list.values.map(&:definition)
end
Puppet::ResourceApi::Transport.list_all_transports(env).values.map(&:definition)
end

def getModuleInfoForEnvironment(env)
Expand Down

0 comments on commit 30b2d0a

Please sign in to comment.