Pep8 fixes for acl module (#24666)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/24789/merge
Abhijeet Kasurde 7 years ago committed by Brian Coca
parent b146ba37da
commit a572de626c

@ -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')

@ -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_role.py
lib/ansible/modules/database/vertica/vertica_schema.py lib/ansible/modules/database/vertica/vertica_schema.py
lib/ansible/modules/database/vertica/vertica_user.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/archive.py
lib/ansible/modules/files/assemble.py lib/ansible/modules/files/assemble.py
lib/ansible/modules/files/blockinfile.py lib/ansible/modules/files/blockinfile.py

Loading…
Cancel
Save