From ce58d119c9e41edc4ba08f0c0000699343f662fc Mon Sep 17 00:00:00 2001 From: jem Date: Sat, 21 Mar 2020 13:36:09 +0100 Subject: [PATCH] fix autoapprove --- src/main/python/ddadevops/devops_terraform_build.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/python/ddadevops/devops_terraform_build.py b/src/main/python/ddadevops/devops_terraform_build.py index 450d468..515f1c6 100644 --- a/src/main/python/ddadevops/devops_terraform_build.py +++ b/src/main/python/ddadevops/devops_terraform_build.py @@ -103,15 +103,15 @@ class DevopsTerraformBuild(DevopsBuild): def apply(self, p_auto_approve=False): tf = self.init_client() self.print_terraform_command('apply') - tf.apply(capture_output=False, auto_approve=p_auto_approve, - var=self.project_vars()) + kwargs = {"auto-approve": p_auto_approve} + tf.apply(capture_output=False, var=self.project_vars(),**kwargs) self.write_output(tf) def destroy(self, p_auto_approve=False): tf = self.init_client() self.print_terraform_command('destroy') - tf.destroy(capture_output=False, auto_approve=p_auto_approve, - var=self.project_vars()) + kwargs = {"auto-approve": p_auto_approve} + tf.destroy(capture_output=False, var=self.project_vars(),**kwargs) def tf_import(self, tf_import_name, tf_import_resource,): tf = self.init_client()