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 pass
def init_client(self): 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) tf.init(backend_config=self.backend_config)
self.print_terraform_command(tf) self.print_terraform_command(tf)
if self.use_workspace: if self.use_workspace:

View file

@ -98,7 +98,7 @@ class DevopsTerraformBuild(DevopsBuild):
self.rescue_local_state() self.rescue_local_state()
def init_client(self): 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() tf.init()
self.print_terraform_command(tf) self.print_terraform_command(tf)
if self.use_workspace: if self.use_workspace: