Skip to content

Commit

Permalink
feat: migrate to separate conf-parser library
Browse files Browse the repository at this point in the history
This PR removes specific Splunk .conf files parser from it and
reuses the library created specifically for this purpose.
  • Loading branch information
artemrys authored and Artem Rys committed Nov 16, 2021
1 parent 2b8c84c commit 2ab9fe9
Show file tree
Hide file tree
Showing 8 changed files with 71 additions and 529 deletions.
133 changes: 66 additions & 67 deletions poetry.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jinja2 = ">=2,<4"
defusedxml = "^0.7.1"
jsonschema = "^4.1.2"
dunamai = "1.7.0"
addonfactory-splunk-conf-parser-lib = "^0.3.3"

[tool.poetry.dev-dependencies]
pytest = "^6.2"
Expand Down
2 changes: 1 addition & 1 deletion splunk_add_on_ucc_framework/app_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import time
from typing import IO

from . import conf_parser
import addonfactory_splunk_conf_parser_lib as conf_parser


class AppConf:
Expand Down
249 changes: 0 additions & 249 deletions splunk_add_on_ucc_framework/conf_parser.py

This file was deleted.

2 changes: 1 addition & 1 deletion splunk_add_on_ucc_framework/meta_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#
from typing import IO

from . import conf_parser
import addonfactory_splunk_conf_parser_lib as conf_parser

DEFAULT = """
# Application-level permissions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import sys
from os import makedirs, remove

from splunk_add_on_ucc_framework import conf_parser
import addonfactory_splunk_conf_parser_lib as conf_parser

from .alert_actions_merge import merge_conf_file

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from os.path import basename as bn
from shutil import copy

from splunk_add_on_ucc_framework import conf_parser
import addonfactory_splunk_conf_parser_lib as conf_parser

from . import alert_actions_exceptions as aae
from . import arf_consts as ac
Expand Down
Loading

0 comments on commit 2ab9fe9

Please sign in to comment.