Add pyc/pyo to ignore list for inventory directories

Fixes #7308
pull/7527/head
James Cammarata 11 years ago
parent d4e11c5c69
commit 9a930fb481

@ -39,14 +39,9 @@ class InventoryDirectory(object):
for i in self.names:
if i.endswith("~") or i.endswith(".orig") or i.endswith(".bak"):
continue
if i.endswith(".ini"):
# configuration file for an inventory script
continue
if i.endswith(".retry"):
# this file is generated on a failed playbook and should only be
# used when run specifically
# Skip files that end with certain extensions or characters
for ext in ("~", ".orig", ".bak", ".ini", ".retry", ".pyc", ".pyo"):
if i.endswith(ext):
continue
# Skip hidden files
if i.startswith('.') and not i.startswith('./'):

Loading…
Cancel
Save