|
|
@ -140,11 +140,10 @@ acl:
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
import os
|
|
|
|
import os
|
|
|
|
|
|
|
|
|
|
|
|
# import module snippets
|
|
|
|
|
|
|
|
from ansible.module_utils.basic import AnsibleModule, get_platform
|
|
|
|
from ansible.module_utils.basic import AnsibleModule, get_platform
|
|
|
|
from ansible.module_utils.pycompat24 import get_exception
|
|
|
|
from ansible.module_utils.pycompat24 import get_exception
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def split_entry(entry):
|
|
|
|
def split_entry(entry):
|
|
|
|
''' splits entry and ensures normalized return'''
|
|
|
|
''' splits entry and ensures normalized return'''
|
|
|
|
|
|
|
|
|
|
|
@ -210,7 +209,7 @@ def build_command(module, mode, path, follow, default, recursive, entry=''):
|
|
|
|
cmd.append('-h')
|
|
|
|
cmd.append('-h')
|
|
|
|
|
|
|
|
|
|
|
|
if default:
|
|
|
|
if default:
|
|
|
|
if(mode == 'rm'):
|
|
|
|
if mode == 'rm':
|
|
|
|
cmd.insert(1, '-k')
|
|
|
|
cmd.insert(1, '-k')
|
|
|
|
else: # mode == 'set' or mode == 'get'
|
|
|
|
else: # mode == 'set' or mode == 'get'
|
|
|
|
cmd.insert(1, '-d')
|
|
|
|
cmd.insert(1, '-d')
|
|
|
|