adjust apply name to other modules

This commit is contained in:
jerger 2022-12-30 15:53:29 +01:00
parent a5b89a3e55
commit f49b74af24

View file

@ -1,4 +1,5 @@
from string import Template
import deprecation
from .python_util import execute_live
from .devops_build import DevopsBuild
@ -104,7 +105,11 @@ class ProvsK3sMixin(DevopsBuild):
with open(self.build_path() + '/out_k3sServerConfig.yaml', "w", encoding="utf-8") as output_file:
output_file.write(self.k3s_config_template.substitute(substitutes))
@deprecation.deprecated(deprecated_in="3.1")
def provs_server(self, dry_run=False):
self.provs_apply(dry_run)
def provs_apply(self, dry_run=False):
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]