pass tf_version when creating terraform object

This commit is contained in:
bom 2022-01-28 12:29:34 +01:00
parent aa4f8ee274
commit e2652584cc
2 changed files with 2 additions and 2 deletions

View file

@ -38,7 +38,7 @@ class AwsBackendPropertiesMixin(DevopsTerraformBuild):
pass
def init_client(self):
tf = Terraform(working_dir=self.build_path())
tf = Terraform(working_dir=self.build_path(), terraform_version=self.terraform_version)
tf.init(backend_config=self.backend_config)
self.print_terraform_command(tf)
if self.use_workspace:

View file

@ -98,7 +98,7 @@ class DevopsTerraformBuild(DevopsBuild):
self.rescue_local_state()
def init_client(self):
tf = Terraform(working_dir=self.build_path())
tf = Terraform(working_dir=self.build_path(), terraform_version=self.terraform_version)
tf.init()
self.print_terraform_command(tf)
if self.use_workspace: