Merge pull request #3123 from zonk1024/inventory-skips-dotfiles

Skip dotfile in hosts dirs
pull/4420/head
Michael DeHaan 2013-06-05 04:58:45 -07:00
commit 9b8478c596
1 changed files with 3 additions and 0 deletions

View File

@ -48,6 +48,9 @@ class InventoryDirectory(object):
# this file is generated on a failed playbook and should only be
# used when run specifically
continue
# Skip hidden files
if i.startswith('.') and not i.startswith('./'):
continue
# These are things inside of an inventory basedir
if i in ("host_vars", "group_vars", "vars_plugins"):
continue