diff options
author | Kapil chouhan <kapil.chouhan@msystechnologies.com> | 2019-09-10 17:17:04 +0530 |
---|---|---|
committer | Kapil chouhan <kapil.chouhan@msystechnologies.com> | 2019-09-10 17:17:04 +0530 |
commit | 7aae7e760676d829f1dd6a45438bbc19518fc619 (patch) | |
tree | 844fffee2b1078cc7758313d6b4ef46ca0397e92 /lib/chef | |
parent | a5854d7ae6100a4f4a125d15dbef8fa69ca1cfad (diff) | |
download | chef-7aae7e760676d829f1dd6a45438bbc19518fc619.tar.gz |
Fix for MSYS-1094 user resource does not handle a gid specified as a string
Signed-off-by: Kapil chouhan <kapil.chouhan@msystechnologies.com>
Diffstat (limited to 'lib/chef')
-rw-r--r-- | lib/chef/provider/user.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/user.rb b/lib/chef/provider/user.rb index 38fe233d76..8c99e36dfc 100644 --- a/lib/chef/provider/user.rb +++ b/lib/chef/provider/user.rb @@ -34,7 +34,7 @@ class Chef end def convert_group_name - if new_resource.gid.is_a? String + if new_resource.gid.is_a?(String) && new_resource.gid.to_i == 0 new_resource.gid(Etc.getgrnam(new_resource.gid).gid) end rescue ArgumentError |