diff options
| author | Nick Lewis <nick@puppetlabs.com> | 2010-06-29 15:49:31 -0700 |
|---|---|---|
| committer | Markus Roberts <Markus@reality.com> | 2010-07-01 13:48:01 -0700 |
| commit | 3cd48d836c9ffe4e59bca78f1033020cecf63354 (patch) | |
| tree | 226f0dc6f00ac5160bcb232dae743ace05eec1fc /lib/puppet/indirector | |
| parent | e848d4104350543241fa1a84aa3eaaf3a27d2616 (diff) | |
[#4089] Replace internal usage of :check with :audit
Per Luke's replacement of :check with :audit, and deprecation of :check,
I've replaced all of our internal uses of :check with :audit. Importantly,
this silence the deprecation warnings during regular usage from eg. ralsh.
Diffstat (limited to 'lib/puppet/indirector')
| -rw-r--r-- | lib/puppet/indirector/resource/ral.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/indirector/resource/ral.rb b/lib/puppet/indirector/resource/ral.rb index 56fc62844..d66c85622 100644 --- a/lib/puppet/indirector/resource/ral.rb +++ b/lib/puppet/indirector/resource/ral.rb @@ -2,7 +2,7 @@ class Puppet::Resource::Ral < Puppet::Indirector::Code 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), :check => type(request).properties.collect { |s| s.name }) + res ||= type(request).new(:name => resource_name(request), :audit => type(request).properties.collect { |s| s.name }) return res.to_resource end |
