diff options
author | Thom May <thom@chef.io> | 2016-02-16 16:40:04 +0000 |
---|---|---|
committer | Thom May <thom@chef.io> | 2016-02-16 16:42:42 +0000 |
commit | bebcc4d28c294eb9709239dbccdde2b7f307f61a (patch) | |
tree | 9e2349beacd79c811a057eee3ce64fbcb18dd035 /lib/chef/resource/group.rb | |
parent | 16922f48cb7edb11fc549fd40861ceb801dad92d (diff) | |
download | chef-bebcc4d28c294eb9709239dbccdde2b7f307f61a.tar.gz |
test that splitting a string on commas DTRTtm/split_group_members
Diffstat (limited to 'lib/chef/resource/group.rb')
-rw-r--r-- | lib/chef/resource/group.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/group.rb b/lib/chef/resource/group.rb index f7874e7ccd..aee4727baf 100644 --- a/lib/chef/resource/group.rb +++ b/lib/chef/resource/group.rb @@ -55,7 +55,7 @@ class Chef end def members(arg = nil) - converted_members = arg.is_a?(String) ? arg.split(',') : arg + converted_members = arg.is_a?(String) ? arg.split(",") : arg set_or_return( :members, converted_members, @@ -66,7 +66,7 @@ class Chef alias_method :users, :members def excluded_members(arg = nil) - converted_members = arg.is_a?(String) ? arg.split(',') : arg + converted_members = arg.is_a?(String) ? arg.split(",") : arg set_or_return( :excluded_members, converted_members, |