mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-17 20:38:06 +00:00
Deprecating the job template feature (#2798)
* deprecating the job template feature * removing the code * format
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user