vendored/puppet/lib/puppet/pops/loaders.rb in bolt-0.21.7 vs vendored/puppet/lib/puppet/pops/loaders.rb in bolt-0.21.8
- old
+ new
@@ -61,18 +61,16 @@
# Called after loader has been added to Puppet Context as :loaders so that dynamic types can
# be pre-loaded with a fully configured loader system
def pre_load
@puppet_system_loader.load(:type, 'error')
-
- # Will move to Bolt
- @puppet_system_loader.load(:type, 'executionresult')
end
# Clears the cached static and puppet_system loaders (to enable testing)
#
def self.clear
@@static_loader = nil
+ Puppet::Pops::Types::TypeFactory.clear
Model.class_variable_set(:@@pcore_ast_initialized, false)
Model.register_pcore_types
end
# Calls {#loaders} to obtain the {{Loaders}} instance and then uses it to find the appropriate loader