[Bug] resolves bug in Rule version methods (#2021)
* [Bug] resolves bug in Rule version methods
* comment out unused code with notes
(cherry picked from commit 744f56d98e)
This commit is contained in:
committed by
github-actions[bot]
parent
57194b8e59
commit
8564185a7d
@@ -29,7 +29,7 @@ except ImportError:
|
||||
GitRelease = None # noqa: N806
|
||||
GitReleaseAsset = None # noqa: N806
|
||||
|
||||
from .utils import add_params, cached, get_path
|
||||
from .utils import add_params, cached, get_path, load_etc_dump
|
||||
|
||||
_CONFIG = {}
|
||||
|
||||
@@ -249,6 +249,12 @@ def get_kibana_rules(*rule_paths, repo='elastic/kibana', branch='master', verbos
|
||||
return kibana_rules
|
||||
|
||||
|
||||
@cached
|
||||
def load_current_package_version() -> str:
|
||||
"""Load the current package version from config file."""
|
||||
return load_etc_dump('packages.yml')['package']['name']
|
||||
|
||||
|
||||
@cached
|
||||
def parse_config():
|
||||
"""Parse a default config file."""
|
||||
|
||||
Reference in New Issue
Block a user