This is an automated email from the ASF dual-hosted git repository. lfrolov pushed a commit to branch DLAB-1664 in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit a911dfb3692b4fac0771f9d924e1de2f8e7566f5 Author: leonidfrolov <[email protected]> AuthorDate: Wed Apr 1 17:17:22 2020 +0300 [DLAB-1664]: added variable --- infrastructure-provisioning/terraform/aws/endpoint/main/variables.tf | 1 + infrastructure-provisioning/terraform/bin/dlab.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/infrastructure-provisioning/terraform/aws/endpoint/main/variables.tf b/infrastructure-provisioning/terraform/aws/endpoint/main/variables.tf index 05370d8..165eb67 100644 --- a/infrastructure-provisioning/terraform/aws/endpoint/main/variables.tf +++ b/infrastructure-provisioning/terraform/aws/endpoint/main/variables.tf @@ -90,4 +90,5 @@ variable "application_name" { variable "delete_images" { description = "If set to true, delete shared images per endpoint" type = bool + default = false } \ No newline at end of file diff --git a/infrastructure-provisioning/terraform/bin/dlab.py b/infrastructure-provisioning/terraform/bin/dlab.py index bd24425..701963d 100644 --- a/infrastructure-provisioning/terraform/bin/dlab.py +++ b/infrastructure-provisioning/terraform/bin/dlab.py @@ -290,8 +290,9 @@ class TerraformProvider: logging.info('terraform destroy') args_str = get_var_args_string(cli_args) params_str = get_args_string(tf_params) - command = ('terraform destroy -auto-approve {} {} {}' - .format(self.no_color, params_str, args_str)) + delete_images = "-var 'delete_images=true'" + command = ('terraform destroy -auto-approve {} {} {} {}' + .format(self.no_color, params_str, args_str, delete_images)) logging.info(command) Console.execute_to_command_line(command) if not keep_state_file: --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
