Deprecating the job template feature (#2798)

* deprecating the job template feature

* removing the code

* format
This commit is contained in:
Cheick Keita
2023-02-08 11:21:03 -08:00
committed by GitHub
parent d732028201
commit f13f52ab71
3 changed files with 9 additions and 19 deletions

View File

@ -1794,9 +1794,6 @@ class Onefuzz:
self.instance_config = InstanceConfigCmd(self)
self.validate_scriban = ValidateScriban(self)
if self._backend.is_feature_enabled(PreviewFeature.job_templates.name):
self.job_templates = JobTemplates(self)
# these are externally developed cli modules
self.template = Template(self, self.logger)
self.debug = Debug(self, self.logger)
@ -1830,9 +1827,6 @@ class Onefuzz:
if tenant_domain is not None:
self._backend.config.tenant_domain = tenant_domain
if self._backend.is_feature_enabled(PreviewFeature.job_templates.name):
self.job_templates._load_cache()
def licenses(self) -> object:
"""Return third-party licenses used by this package"""
data = pkgutil.get_data("onefuzz", "data/licenses.json")
@ -1860,9 +1854,6 @@ class Onefuzz:
# actuates the login process
self.info.get()
# TODO: once job templates are out of preview, this should be enabled
if self._backend.is_feature_enabled(PreviewFeature.job_templates.name):
self.job_templates.refresh()
return "succeeded"
def config(
@ -1922,6 +1913,5 @@ class Onefuzz:
from .debug import Debug # noqa: E402
from .job_templates.main import JobTemplates # noqa: E402
from .status.cmd import Status # noqa: E402
from .template import Template # noqa: E402