Skip to content

Commit

Permalink
use -no-color arg for validate command
Browse files Browse the repository at this point in the history
  • Loading branch information
findmyname666 authored and gravesm committed Nov 2, 2023
1 parent b1ba168 commit 9b740eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/module_utils/terraform_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def show(self, state_or_plan_file_path: str) -> Optional[TerraformShow]:
return TerraformShow.from_json(result)

def validate(self, version: LooseVersion, variables_args: List[str]) -> None:
command = ["validate"]
command = ["validate", "-no-color"]
if version < LooseVersion("0.15.0"):
command += variables_args
self._run(*command, check_rc=True)
Expand Down

0 comments on commit 9b740eb

Please sign in to comment.