From a572de626c9b07928254314e89bc828ffe345af3 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Sat, 19 Aug 2017 00:01:16 +0530 Subject: [PATCH] Pep8 fixes for acl module (#24666) Signed-off-by: Abhijeet Kasurde --- lib/ansible/modules/files/acl.py | 5 ++--- test/sanity/pep8/legacy-files.txt | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/ansible/modules/files/acl.py b/lib/ansible/modules/files/acl.py index 3e4e681eb2c..2632c4b23ff 100644 --- a/lib/ansible/modules/files/acl.py +++ b/lib/ansible/modules/files/acl.py @@ -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') diff --git a/test/sanity/pep8/legacy-files.txt b/test/sanity/pep8/legacy-files.txt index b06b9bba17e..53db9f8124e 100644 --- a/test/sanity/pep8/legacy-files.txt +++ b/test/sanity/pep8/legacy-files.txt @@ -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