summaryrefslogtreecommitdiff
path: root/lib/chef/resource/group.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/group.rb')
-rw-r--r--lib/chef/resource/group.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/resource/group.rb b/lib/chef/resource/group.rb
index 63e376d34f..fc2c33322b 100644
--- a/lib/chef/resource/group.rb
+++ b/lib/chef/resource/group.rb
@@ -1,7 +1,7 @@
#
# Author:: Adam Jacob (<adam@chef.io>)
# Author:: Tyler Cloke (<tyler@chef.io>)
-# Copyright:: Copyright 2008-2016, Chef Software Inc.
+# Copyright:: Copyright 2008-2018, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -35,11 +35,11 @@ class Chef
description: "The identifier for the group."
property :members, [String, Array], default: lazy { [] },
- coerce: proc { |x| x.kind_of?(String) ? x.split(",") : x },
+ coerce: proc { |arg| arg.is_a?(String) ? arg.split(/\s*,\s*/) : arg },
description: "Which users should be set or appended to a group. This can be either an array or a comma separated list."
property :excluded_members, [String, Array], default: lazy { [] },
- coerce: proc { |x| x.kind_of?(String) ? x.split(",") : x },
+ coerce: proc { |arg| arg.is_a?(String) ? arg.split(/\s*,\s*/) : arg },
description: "Remove users from a group. May only be used when append is set to true."
property :append, [ TrueClass, FalseClass ], default: false,