summaryrefslogtreecommitdiff
path: root/lib/chef/provider/group.rb
diff options
context:
space:
mode:
authorDave Eddy <dave@daveeddy.com>2015-03-16 21:01:11 -0400
committerDave Eddy <dave@daveeddy.com>2015-03-16 21:01:11 -0400
commiteb58cd69cd844306ff7c1d7aaada76b5a4a222c9 (patch)
treea619bf7df4df81868383b03cdb1e4db8b6e5a81c /lib/chef/provider/group.rb
parentcade6e3440badf2f43b3032b802a7b60c7b087db (diff)
downloadchef-eb58cd69cd844306ff7c1d7aaada76b5a4a222c9.tar.gz
alter messages generated by group provider to show group_name
Diffstat (limited to 'lib/chef/provider/group.rb')
-rw-r--r--lib/chef/provider/group.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/chef/provider/group.rb b/lib/chef/provider/group.rb
index 29738cc046..a802758dce 100644
--- a/lib/chef/provider/group.rb
+++ b/lib/chef/provider/group.rb
@@ -125,13 +125,13 @@ class Chef
def action_create
case @group_exists
when false
- converge_by("create #{@new_resource}") do
+ converge_by("create #{@new_resource.group_name}") do
create_group
Chef::Log.info("#{@new_resource} created")
end
else
if compare_group
- converge_by(["alter group #{@new_resource}"] + change_desc) do
+ converge_by(["alter group #{@new_resource.group_name}"] + change_desc) do
manage_group
Chef::Log.info("#{@new_resource} altered")
end
@@ -141,7 +141,7 @@ class Chef
def action_remove
if @group_exists
- converge_by("remove group #{@new_resource}") do
+ converge_by("remove group #{@new_resource.group_name}") do
remove_group
Chef::Log.info("#{@new_resource} removed")
end
@@ -150,7 +150,7 @@ class Chef
def action_manage
if @group_exists && compare_group
- converge_by(["manage group #{@new_resource}"] + change_desc) do
+ converge_by(["manage group #{@new_resource.group_name}"] + change_desc) do
manage_group
Chef::Log.info("#{@new_resource} managed")
end
@@ -159,7 +159,7 @@ class Chef
def action_modify
if compare_group
- converge_by(["modify group #{@new_resource}"] + change_desc) do
+ converge_by(["modify group #{@new_resource.group_name}"] + change_desc) do
manage_group
Chef::Log.info("#{@new_resource} modified")
end