pass tf_version when creating terraform object
This commit is contained in:
parent
aa4f8ee274
commit
e2652584cc
2 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue