diff options
| author | Luke Kanies <luke@madstop.com> | 2008-01-07 12:03:44 -0600 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-01-07 12:03:44 -0600 |
| commit | 117926c92c8bdf2a45724c0ae758586f5ae23979 (patch) | |
| tree | 1f19745ea4327eaa6836647a10612d491d090ed4 /lib | |
| parent | a7bca7eb8471d546edc27d452cccb8a23ca9b801 (diff) | |
| download | puppet-117926c92c8bdf2a45724c0ae758586f5ae23979.tar.gz puppet-117926c92c8bdf2a45724c0ae758586f5ae23979.tar.xz puppet-117926c92c8bdf2a45724c0ae758586f5ae23979.zip | |
Fixing the unit tests for nagios_maker; I could swear I'd already
done this but I must not have committed it.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/puppet/util/nagios_maker.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/puppet/util/nagios_maker.rb b/lib/puppet/util/nagios_maker.rb index 88402838f..a7aae4e70 100644 --- a/lib/puppet/util/nagios_maker.rb +++ b/lib/puppet/util/nagios_maker.rb @@ -40,14 +40,15 @@ module Puppet::Util::NagiosMaker end end - provider = type.provide(:naginator, :parent => Puppet::Provider::Naginator, :default_target => "/etc/nagios/#{full_name.to_s}.cfg") {} + target = "/etc/nagios/#{full_name.to_s}.cfg" + provider = type.provide(:naginator, :parent => Puppet::Provider::Naginator, :default_target => target) {} type.desc "The Nagios type #{name.to_s}. This resource type is autogenerated using the model developed in Naginator_, and all of the Nagios types are generated using the same code and the same library. This type generates Nagios configuration statements in Nagios-parseable configuration - files. By default, the statements will be added to ``#{provider.default_target}``, but + files. By default, the statements will be added to ``#{target}``, but you can send them to a different file by setting their ``target`` attribute. .. _naginator: http://reductivelabs.com/trac/naginator |
