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


The following commit(s) were added to refs/heads/DLAB-1664 by this push:
     new 09b3a81  [DLAB-1664]: changed for testing
09b3a81 is described below

commit 09b3a8132917884d5b024cc9b3dcfc1760db6c36
Author: leonidfrolov <[email protected]>
AuthorDate: Wed Apr 1 18:51:03 2020 +0300

    [DLAB-1664]: changed for testing
---
 infrastructure-provisioning/terraform/aws/endpoint/main/ami.tf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/terraform/aws/endpoint/main/ami.tf 
b/infrastructure-provisioning/terraform/aws/endpoint/main/ami.tf
index 162759a..967cd23 100644
--- a/infrastructure-provisioning/terraform/aws/endpoint/main/ami.tf
+++ b/infrastructure-provisioning/terraform/aws/endpoint/main/ami.tf
@@ -20,7 +20,7 @@
  # 
******************************************************************************
 
  resource "aws_ami" "shared_notebook_ami" {
-   count = var.delete_images ? 1 : 0
+   count = "${var.delete_images ? length(var.application_name) : 0}"
    name = "${var.service_base_name}-${var.endpoint_id}-jupyter-notebook-image"
    virtualization_type = "hvm"
    root_device_name    = "/dev/sda1"


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to