From 3eea649cbbd49b5a6c67fc0f831d78de1543dc00 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Thu, 15 Jun 2017 15:54:05 -0700 Subject: [PATCH] PEP 8 fixes. --- lib/ansible/cli/__init__.py | 2 +- lib/ansible/plugins/vars/host_group_vars.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/cli/__init__.py b/lib/ansible/cli/__init__.py index de9a52257ca..0796099aec4 100644 --- a/lib/ansible/cli/__init__.py +++ b/lib/ansible/cli/__init__.py @@ -283,7 +283,7 @@ class CLI(with_metaclass(ABCMeta, object)): elif isinstance(value, list): setattr(parser.values, option.dest, [unfrackpath(x) for x in value]) else: - pass #FIXME: should we raise options error? + pass # FIXME: should we raise options error? @staticmethod def unfrack_path(option, opt, value, parser): diff --git a/lib/ansible/plugins/vars/host_group_vars.py b/lib/ansible/plugins/vars/host_group_vars.py index c8d22cc779f..433e64d65d2 100644 --- a/lib/ansible/plugins/vars/host_group_vars.py +++ b/lib/ansible/plugins/vars/host_group_vars.py @@ -121,12 +121,12 @@ class VarsModule(BaseVarsPlugin): found = [] for spath in os.listdir(path): - if not spath.startswith('.'): # skip hidden + if not spath.startswith('.'): # skip hidden ext = os.path.splitext()[-1] full_spath = os.path.join(path, spath) - if os.path.isdir(full_spath) and not ext: # recursive search if dir + if os.path.isdir(full_spath) and not ext: # recursive search if dir found.extend(self._get_dir_files(full_spath)) elif os.path.isfile(full_spath) and (not ext or ext in C.YAML_FILENAME_EXTENSIONS): # only consider files with valid extensions or no extension