diff options
author | rishichawda <rishichawda@users.noreply.github.com> | 2021-08-16 17:31:30 +0530 |
---|---|---|
committer | rishichawda <rishichawda@users.noreply.github.com> | 2021-08-17 10:56:37 +0530 |
commit | 17c355aa9910ad2fb34fee2d93dd32b98cfc1ec5 (patch) | |
tree | 1e719448dd7b1d5b4f51dbd4c15918bf4b786289 | |
parent | d65b4c42d9aeb0226148dbd80e2096e7804ad651 (diff) | |
download | chef-17c355aa9910ad2fb34fee2d93dd32b98cfc1ec5.tar.gz |
fix(resource/group): group id comparison
Signed-off-by: rishichawda <rishichawda@users.noreply.github.com>
-rw-r--r-- | lib/chef/provider/group/dscl.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/group/dscl.rb b/lib/chef/provider/group/dscl.rb index 824ebe0477..61930d027a 100644 --- a/lib/chef/provider/group/dscl.rb +++ b/lib/chef/provider/group/dscl.rb @@ -158,7 +158,7 @@ class Chef if new_resource.group_name && (current_resource.group_name != new_resource.group_name) dscl_create_group end - if new_resource.gid && (current_resource.gid != new_resource.gid) + if new_resource.gid && (current_resource.gid != new_resource.gid.to_s) set_gid end if new_resource.members || new_resource.excluded_members |