Use execute_live to run provs-server
This commit is contained in:
parent
d243c9d717
commit
6865cd43e8
1 changed files with 4 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue