summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael DeHaan <michael.dehaan@gmail.com>2012-11-26 18:50:26 -0500
committerMichael DeHaan <michael.dehaan@gmail.com>2012-11-26 18:50:26 -0500
commitdd5a8474f839dff3d600d0ba09351db55f8c6672 (patch)
treeeceabe86d2ddcac8645524a27ffda68e05dd326f
parent21d858f36da9198e0349223b37c1c4c82cb492ed (diff)
downloadansible-dd5a8474f839dff3d600d0ba09351db55f8c6672.tar.gz
Have module formatter ignore more types of files.
-rwxr-xr-xhacking/module_formatter.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/hacking/module_formatter.py b/hacking/module_formatter.py
index 6a28be16f8..217d325f17 100755
--- a/hacking/module_formatter.py
+++ b/hacking/module_formatter.py
@@ -283,7 +283,8 @@ def main():
fname = os.path.join(options.module_dir, module)
extra = os.path.join("inc", "%s.tex" % module)
- if fname.endswith(".swp"):
+ # probably could just throw out everything with extensions
+ if fname.endswith(".swp") or fname.endswith(".orig") or fname.endswith(".rej"):
continue
print " processing module source ---> %s" % fname