summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2016-07-30 21:40:45 -0700
committerTim Smith <tsmith@chef.io>2016-07-30 21:40:45 -0700
commit462c9b5ca421f8692465d8c0c7213f4097cc31d2 (patch)
tree7bd2f13f37580299d28fc7f7d1ef8d8ff5a2fad8
parent6b88d8c1bd89f9864478fc873352c2881441dbfe (diff)
downloadchef-462c9b5ca421f8692465d8c0c7213f4097cc31d2.tar.gz
Fix specify members of group on suse/openbsd/solaris2/hpux
Action is an array. We need to check to see if create is in the action array instead of checking to see if it's ";create" which it never will be. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/provider/group/usermod.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/group/usermod.rb b/lib/chef/provider/group/usermod.rb
index e4b19181aa..bef4b667a2 100644
--- a/lib/chef/provider/group/usermod.rb
+++ b/lib/chef/provider/group/usermod.rb
@@ -57,7 +57,7 @@ class Chef
# This provider only supports adding members with
# append. Only if the action is create we will go
# ahead and add members.
- if @new_resource.action == :create
+ if @new_resource.action.include?(:create)
members.each do |member|
add_member(member)
end