We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a52b507 + 15c9f39 commit 3cdf8ecCopy full SHA for 3cdf8ec
pre_commit_hooks/terraform_docs_replace.py
@@ -25,7 +25,6 @@ def main(argv=None):
25
dirs = []
26
for filename in args.filenames:
27
if (os.path.realpath(filename) not in dirs and \
28
- len(os.path.realpath(filename).strip()) > 0 and \
29
(filename.endswith(".tf") or filename.endswith(".tfvars"))):
30
dirs.append(os.path.dirname(filename))
31
@@ -40,7 +39,7 @@ def main(argv=None):
40
39
if args.aggregate:
41
procArgs.append('--with-aggregate-type-defaults')
42
procArgs.append('md')
43
- procArgs.append(dir)
+ procArgs.append("./{dir}".format(dir=dir))
44
procArgs.append("| sed -e '$ d' -e 'N;/^\\n$/D;P;D'")
45
procArgs.append('>')
46
procArgs.append("./{dir}/{dest}".format(dir=dir,dest=args.dest))
0 commit comments