fix autoapprove
This commit is contained in:
parent
686442b00f
commit
ce58d119c9
1 changed files with 4 additions and 4 deletions
|
@ -103,15 +103,15 @@ class DevopsTerraformBuild(DevopsBuild):
|
||||||
def apply(self, p_auto_approve=False):
|
def apply(self, p_auto_approve=False):
|
||||||
tf = self.init_client()
|
tf = self.init_client()
|
||||||
self.print_terraform_command('apply')
|
self.print_terraform_command('apply')
|
||||||
tf.apply(capture_output=False, auto_approve=p_auto_approve,
|
kwargs = {"auto-approve": p_auto_approve}
|
||||||
var=self.project_vars())
|
tf.apply(capture_output=False, var=self.project_vars(),**kwargs)
|
||||||
self.write_output(tf)
|
self.write_output(tf)
|
||||||
|
|
||||||
def destroy(self, p_auto_approve=False):
|
def destroy(self, p_auto_approve=False):
|
||||||
tf = self.init_client()
|
tf = self.init_client()
|
||||||
self.print_terraform_command('destroy')
|
self.print_terraform_command('destroy')
|
||||||
tf.destroy(capture_output=False, auto_approve=p_auto_approve,
|
kwargs = {"auto-approve": p_auto_approve}
|
||||||
var=self.project_vars())
|
tf.destroy(capture_output=False, var=self.project_vars(),**kwargs)
|
||||||
|
|
||||||
def tf_import(self, tf_import_name, tf_import_resource,):
|
def tf_import(self, tf_import_name, tf_import_resource,):
|
||||||
tf = self.init_client()
|
tf = self.init_client()
|
||||||
|
|
Loading…
Reference in a new issue