Skip to content

Commit

Permalink
Add quote to arm-ttk linter command
Browse files Browse the repository at this point in the history
Fixes #1879
quick build
  • Loading branch information
nvuillam committed Sep 20, 2022
1 parent 260dc1f commit 647f4c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-linter.yml file, or with `oxsecurity/megalinter:beta` docker image

- Add quotes to arm-ttk linter command ([#1879](https://github.com/oxsecurity/megalinter/issues/1879))

- Linter versions upgrades
- [cfn-lint](https://github.com/aws-cloudformation/cfn-lint) from 0.65.0 to **0.65.1** on 2022-09-20
- [checkov](https://www.checkov.io/) from 2.1.213 to **2.1.214** on 2022-09-20
Expand Down
4 changes: 2 additions & 2 deletions megalinter/linters/ArmLinter.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ def build_lint_command(self, file=None):
'${config} = $(Import-PowerShellDataFile -Path "'
+ self.config_file
+ '") ;',
"Test-AzTemplate @config -TemplatePath " + file + " ;",
f"Test-AzTemplate @config -TemplatePath '{file}' ;",
]
else:
pwsh_script += ["Test-AzTemplate -TemplatePath " + file + " ;"]
pwsh_script += [f"Test-AzTemplate -TemplatePath '{file}' ;"]
pwsh_script += ["if (${Error}.Count) {exit 1}"]
cmd = [
("powershell" if sys.platform == "win32" else "pwsh"),
Expand Down

0 comments on commit 647f4c6

Please sign in to comment.