lib/chef/provider/group.rb in chef-0.9.6 vs lib/chef/provider/group.rb in chef-0.9.8.beta.1
- old
+ new
@@ -43,10 +43,10 @@
@group_exists = false
Chef::Log.debug("#{@new_resource}: group does not exist")
end
if group_info
- @new_resource.gid(group_info.gid)
+ @new_resource.gid(group_info.gid) unless @new_resource.gid
@current_resource.gid(group_info.gid)
@current_resource.members(group_info.mem)
end
@current_resource