mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
acl: do not remove all default entries (#32615)
This commit is contained in:
parent
39595771fa
commit
714598e91b
2 changed files with 61 additions and 18 deletions
|
@ -199,10 +199,7 @@ def build_command(module, mode, path, follow, default, recursive, entry=''):
|
|||
cmd.append('-h')
|
||||
|
||||
if default:
|
||||
if mode == 'rm':
|
||||
cmd.insert(1, '-k')
|
||||
else: # mode == 'set' or mode == 'get'
|
||||
cmd.insert(1, '-d')
|
||||
cmd.insert(1, '-d')
|
||||
|
||||
cmd.append(path)
|
||||
return cmd
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue