summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jacob <adam@opscode.com>2011-04-04 21:41:54 -0700
committerDaniel DeLeo <dan@opscode.com>2011-04-06 14:16:02 -0700
commit8f5bc839c4a77ee2363bd765d9fee3353408c977 (patch)
tree546506b5edfe54d0252e7f2ce5ae18a879d3c223
parentcb6d9818e83d9e0e5370d196b4c1522c20c9e2d6 (diff)
downloadchef-8f5bc839c4a77ee2363bd765d9fee3353408c977.tar.gz
Updating ifconfig provider log messages
-rw-r--r--chef/lib/chef/provider/ifconfig.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/chef/lib/chef/provider/ifconfig.rb b/chef/lib/chef/provider/ifconfig.rb
index d323085537..bf2146df86 100644
--- a/chef/lib/chef/provider/ifconfig.rb
+++ b/chef/lib/chef/provider/ifconfig.rb
@@ -80,8 +80,8 @@ class Chef
run_command(
:command => command
)
+ Chef::Log.info("#{@new_resource} added")
@new_resource.updated_by_last_action(true)
-
end
# Write out the config files
@@ -96,9 +96,10 @@ class Chef
run_command(
:command => command
)
+ Chef::Log.info("#{@new_resource} deleted")
@new_resource.updated_by_last_action(true)
else
- Chef::Log.debug("Ifconfig #{@current_resource} does not exist")
+ Chef::Log.debug("#{@new_resource} does not exist - nothing to do")
end
end
@@ -121,6 +122,7 @@ class Chef
network_file = ::File.new("/etc/sysconfig/network-scripts/ifcfg-#{@new_resource.device}", "w")
network_file.puts(template.result(b))
network_file.close
+ Chef::Log.info("#{@new_resource} created configuration file")
when "debian","ubuntu"
# template
when "slackware"