You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by om...@apache.org on 2019/07/09 11:45:53 UTC

[incubator-dlab] branch DLAB-terraform updated: Skip empty values

This is an automated email from the ASF dual-hosted git repository.

omartushevskyi pushed a commit to branch DLAB-terraform
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/DLAB-terraform by this push:
     new 4966ddd  Skip empty values
     new a26195f  Merge pull request #146 from bohdana-kuzmenko/DLAB-terraform-cli
4966ddd is described below

commit 4966dddc01bd5f5cde69f6598cb5c2ab57b4dabe
Author: bohdana_kuzmenko <bo...@gmail.com>
AuthorDate: Tue Jul 9 14:41:15 2019 +0300

    Skip empty values
---
 infrastructure-provisioning/terraform/bin/terraform-cli.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/infrastructure-provisioning/terraform/bin/terraform-cli.py b/infrastructure-provisioning/terraform/bin/terraform-cli.py
index 8a5a8d1..baa233d 100755
--- a/infrastructure-provisioning/terraform/bin/terraform-cli.py
+++ b/infrastructure-provisioning/terraform/bin/terraform-cli.py
@@ -38,6 +38,8 @@ class TerraformProvider:
     def get_args_string(self, cli_args):
         args = []
         for key, value in cli_args.items():
+            if not value:
+                continue
             if type(value) == list:
                 joined_values = ', '.join(['"{}"'.format(item) for item in value])
                 value = '[{}]'.format(joined_values)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org