mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
@@ -1142,6 +1142,8 @@ class AnsibleModule(object):
|
|||||||
b_path = os.path.expanduser(os.path.expandvars(b_path))
|
b_path = os.path.expanduser(os.path.expandvars(b_path))
|
||||||
path = to_text(b_path, errors='surrogate_then_strict')
|
path = to_text(b_path, errors='surrogate_then_strict')
|
||||||
|
|
||||||
|
existing = self.get_file_attributes(b_path)
|
||||||
|
|
||||||
if existing.get('attr_flags','') != attributes:
|
if existing.get('attr_flags','') != attributes:
|
||||||
attrcmd = self.get_bin_path('chattr')
|
attrcmd = self.get_bin_path('chattr')
|
||||||
if attrcmd:
|
if attrcmd:
|
||||||
|
|||||||
Reference in New Issue
Block a user