From 6865cd43e83885d07fd16da79995230a894601c8 Mon Sep 17 00:00:00 2001 From: bom Date: Thu, 29 Dec 2022 11:06:11 +0100 Subject: [PATCH] Use execute_live to run provs-server --- src/main/python/ddadevops/provs_k3s_mixin.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/main/python/ddadevops/provs_k3s_mixin.py b/src/main/python/ddadevops/provs_k3s_mixin.py index 80db993..3d16fbb 100644 --- a/src/main/python/ddadevops/provs_k3s_mixin.py +++ b/src/main/python/ddadevops/provs_k3s_mixin.py @@ -106,14 +106,10 @@ class ProvsK3sMixin(DevopsBuild): output_file.write(self.k3s_config_template.substitute(substitutes)) def provs_server(self, dry_run=False): - result = '' cmd = ['provs-server.jar', 'k3s', self.provision_user + '@' + self.fqdn, '-c', self.build_path() + '/out_k3sServerConfig.yaml', '-a', self.build_path() + '/' + self.app_filename_to_provision] - prn_cmd = list(cmd) - print(" ".join(prn_cmd)) - if (not dry_run): - result = execute(cmd) - print(result) - - return result + if dry_run: + print(" ".join(cmd)) + else: + execute_live(cmd)