diff options
author | Tim Smith <tsmith@chef.io> | 2019-09-10 09:31:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-10 09:31:44 -0700 |
commit | 906d6a94026119ed56580f8ac967c982aed9efdb (patch) | |
tree | 3a28e1b86299e31f3a523a5f3101b3ec414f104d /lib/chef | |
parent | 4013d9314812e131226a32d352bbfe014d2c49ad (diff) | |
parent | 7aae7e760676d829f1dd6a45438bbc19518fc619 (diff) | |
download | chef-906d6a94026119ed56580f8ac967c982aed9efdb.tar.gz |
Merge pull request #8869 from MsysTechnologiesllc/Kapil/MSYS-1094_user_resource_does_not_handle_a_gid_specified_as_a_string
Fix for user resource does not handle a gid specified as a string
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 |