Skip to content

Commit

Permalink
Fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jiuka committed Oct 28, 2024
1 parent f908f8d commit 8308428
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 128 deletions.
122 changes: 0 additions & 122 deletions agent_based/opnsense.py

This file was deleted.

1 change: 0 additions & 1 deletion agent_based/opnsense_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

import json
from cmk.agent_based.v2 import (
AgentSection,
check_levels,
Expand Down
9 changes: 4 additions & 5 deletions agent_based/opnsense_vip.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,18 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

import json
from itertools import groupby
from cmk.agent_based.v2 import (
AgentSection,
check_levels,
CheckPlugin,
CheckResult,
DiscoveryResult,
Metric,
Result,
RuleSetType,
Service,
State,
check_levels,
RuleSetType,
DiscoveryResult,
CheckResult,
)
from cmk_addons.plugins.opnsense.lib.utils import parse_json, parse_jsonl, JSONSection, JSONLSection

Expand Down
1 change: 1 addition & 0 deletions tests/unit/lib/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
def test_parse_json(string_table, result):
assert utils.parse_json(string_table) == result


@pytest.mark.parametrize('string_table, result', [
([], None),
([['{"key":"value"}']], [{'key': 'value'}]),
Expand Down

0 comments on commit 8308428

Please sign in to comment.