diff options
author | Matt Clay <matt@mystile.com> | 2017-06-15 15:54:05 -0700 |
---|---|---|
committer | Matt Clay <matt@mystile.com> | 2017-06-15 15:54:05 -0700 |
commit | 3eea649cbbd49b5a6c67fc0f831d78de1543dc00 (patch) | |
tree | b9c63e0185cada0794381bb957e39b0cdef392b6 /lib/ansible/plugins/vars | |
parent | 938d60472af6f6b20d0d7a0c616e36b499e79c12 (diff) | |
download | ansible-3eea649cbbd49b5a6c67fc0f831d78de1543dc00.tar.gz |
PEP 8 fixes.
Diffstat (limited to 'lib/ansible/plugins/vars')
-rw-r--r-- | lib/ansible/plugins/vars/host_group_vars.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/plugins/vars/host_group_vars.py b/lib/ansible/plugins/vars/host_group_vars.py index c8d22cc779..433e64d65d 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 |