Pep8 fixes for acl module (#24666)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
b146ba37da
commit
a572de626c
2 changed files with 2 additions and 4 deletions
|
@ -140,11 +140,10 @@ acl:
|
|||
'''
|
||||
|
||||
import os
|
||||
|
||||
# import module snippets
|
||||
from ansible.module_utils.basic import AnsibleModule, get_platform
|
||||
from ansible.module_utils.pycompat24 import get_exception
|
||||
|
||||
|
||||
def split_entry(entry):
|
||||
''' splits entry and ensures normalized return'''
|
||||
|
||||
|
@ -210,7 +209,7 @@ def build_command(module, mode, path, follow, default, recursive, entry=''):
|
|||
cmd.append('-h')
|
||||
|
||||
if default:
|
||||
if(mode == 'rm'):
|
||||
if mode == 'rm':
|
||||
cmd.insert(1, '-k')
|
||||
else: # mode == 'set' or mode == 'get'
|
||||
cmd.insert(1, '-d')
|
||||
|
|
|
@ -208,7 +208,6 @@ lib/ansible/modules/database/vertica/vertica_facts.py
|
|||
lib/ansible/modules/database/vertica/vertica_role.py
|
||||
lib/ansible/modules/database/vertica/vertica_schema.py
|
||||
lib/ansible/modules/database/vertica/vertica_user.py
|
||||
lib/ansible/modules/files/acl.py
|
||||
lib/ansible/modules/files/archive.py
|
||||
lib/ansible/modules/files/assemble.py
|
||||
lib/ansible/modules/files/blockinfile.py
|
||||
|
|
Loading…
Reference in a new issue