diff options
author | Dave Eddy <dave@daveeddy.com> | 2015-03-16 21:01:11 -0400 |
---|---|---|
committer | Dave Eddy <dave@daveeddy.com> | 2015-03-16 21:01:11 -0400 |
commit | eb58cd69cd844306ff7c1d7aaada76b5a4a222c9 (patch) | |
tree | a619bf7df4df81868383b03cdb1e4db8b6e5a81c /lib/chef/provider/group.rb | |
parent | cade6e3440badf2f43b3032b802a7b60c7b087db (diff) | |
download | chef-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.rb | 10 |
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 |