From a179bb4103de63fb3105415e9971f3068e0d2caa Mon Sep 17 00:00:00 2001 From: jem Date: Fri, 13 Mar 2020 17:57:32 +0100 Subject: [PATCH] fix build output issue --- build.py | 2 +- src/main/python/ddadevops/devops_terraform_build.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build.py b/build.py index b6988ec..c3dd5b6 100644 --- a/build.py +++ b/build.py @@ -28,7 +28,7 @@ use_plugin("python.distutils") default_task = "publish" name = "ddadevops" -version = "0.4.1.dev32" +version = "0.4.1.dev34" summary = "tools to support builds combining gopass, terraform, dda-pallet, aws & hetzner-cloud" description = __doc__ authors = [Author("meissa GmbH", "buero@meissa-gmbh.de")] diff --git a/src/main/python/ddadevops/devops_terraform_build.py b/src/main/python/ddadevops/devops_terraform_build.py index 450d468..244c0ff 100644 --- a/src/main/python/ddadevops/devops_terraform_build.py +++ b/src/main/python/ddadevops/devops_terraform_build.py @@ -85,7 +85,9 @@ class DevopsTerraformBuild(DevopsBuild): tf.workspace('new', self.stage) return tf - def write_output(self, tf): + def write_output(self, tf=None): + if tf is None: + tf = self.init_client() self.print_terraform_command('output -json') result = tf.output(json=IsFlagged) with open(self.build_path() + self.output_json_name, "w") as output_file: