Instruqt Example

This commit is contained in:
Ompragash Viswanathan 2021-08-16 16:50:20 +05:30
parent ab9eaf24bc
commit 967cc622a0

View file

@ -190,7 +190,6 @@ def build_command(module, mode, path, follow, default, recursive, recalculate_ma
'''Builds and returns a getfacl/setfacl command.''' '''Builds and returns a getfacl/setfacl command.'''
if mode == 'set': if mode == 'set':
cmd = [module.get_bin_path('setfacl', True)] cmd = [module.get_bin_path('setfacl', True)]
cmd.extend(['-m', entry])
elif mode == 'rm': elif mode == 'rm':
cmd = [module.get_bin_path('setfacl', True)] cmd = [module.get_bin_path('setfacl', True)]
cmd.extend(['-x', entry]) cmd.extend(['-x', entry])