mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix #57189.
This patch ensures that the extents file attribute is ignored when comparing file attributes. This is necessary because this attribute is set by the underlying file system and can never be reset.
This commit is contained in:
parent
99385b5071
commit
42894bd5a7
2 changed files with 6 additions and 0 deletions
1
changelog/57189.fixed
Normal file
1
changelog/57189.fixed
Normal file
|
@ -0,0 +1 @@
|
|||
Fixed handling of extents extended attribute in file.managed state.
|
|
@ -587,6 +587,11 @@ def _cmp_attrs(path, attrs):
|
|||
new = set(attrs)
|
||||
old = set(lattrs)
|
||||
|
||||
# The "e" attribute can be set, but it cannot not be reset, so we add it to
|
||||
# the new set if it is present in the old set.
|
||||
if "e" in old:
|
||||
new.add("e")
|
||||
|
||||
return AttrChanges(
|
||||
added="".join(new - old) or None, removed="".join(old - new) or None,
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue