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)