Skip to content

Commit

Permalink
dont set ACLs if there are no ACLs to change
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Jan 25, 2022
1 parent 2f77941 commit 420b1aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/puppet/provider/posix_acl/posixacl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ def permission=(_value)
end
end
end
set_perm(perm_to_set, @resource.value(:path))
# It's possible we don't have any perms to set if we only removed some
set_perm(perm_to_set, @resource.value(:path)) unless perm_to_set_check.empty?
end
end
end

0 comments on commit 420b1aa

Please sign in to comment.