vendored/puppet/lib/puppet/util/feature.rb in bolt-0.21.1 vs vendored/puppet/lib/puppet/util/feature.rb in bolt-0.21.2
- old
+ new
@@ -47,17 +47,17 @@
@results = {}
@loader = Puppet::Util::Autoload.new(self, @path)
end
def load
- @loader.loadall
+ @loader.loadall(Puppet.lookup(:current_environment))
end
def method_missing(method, *args)
return super unless method.to_s =~ /\?$/
feature = method.to_s.sub(/\?$/, '')
- @loader.load(feature)
+ @loader.load(feature, Puppet.lookup(:current_environment))
respond_to?(method) && self.send(method)
end
# Actually test whether the feature is present. We only want to test when