added 'existing' back

fixes #22785
pull/22797/head
Brian Coca 8 years ago committed by Brian Coca
parent 1c38cba7ca
commit 07d9366ed8

@ -1142,6 +1142,8 @@ class AnsibleModule(object):
b_path = os.path.expanduser(os.path.expandvars(b_path))
path = to_text(b_path, errors='surrogate_then_strict')
existing = self.get_file_attributes(b_path)
if existing.get('attr_flags','') != attributes:
attrcmd = self.get_bin_path('chattr')
if attrcmd:

Loading…
Cancel
Save