lib/puppet/indirector/resource/ral.rb in puppet-3.3.2 vs lib/puppet/indirector/resource/ral.rb in puppet-3.4.0.rc1

- old
+ new

@@ -3,9 +3,14 @@ class Puppet::Resource::Ral < Puppet::Indirector::Code include Puppet::Resource::Validator desc "Manipulate resources with the resource abstraction layer. Only used internally." + def allow_remote_requests? + Puppet.deprecation_warning("Accessing resources on the network is deprecated. See http://links.puppetlabs.com/deprecate-networked-resource") + super + end + def find( request ) # find by name res = type(request).instances.find { |o| o.name == resource_name(request) } res ||= type(request).new(:name => resource_name(request), :audit => type(request).properties.collect { |s| s.name })