Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
lagrip committed Oct 3, 2024
1 parent 6cba613 commit 36c7b7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion agent_based/openvpn.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def parse_ovpnlicense(string_table):

def discover_ovpnlicense(section):
if section is not None:
yield Service()
yield Service()


def check_ovpnlicense(params, section):
Expand Down
1 change: 1 addition & 0 deletions tests/unit/agent_based/test_ovpnusers.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
)
from cmk.base.plugins.agent_based import openvpn


@pytest.mark.parametrize('section, result', [
([['{'], ['"n_clients": 0,'], ['"ovpn_dco_available": false,'], ['"ovpn_dco_ver": "Kernel module not loaded"'], ['}']], 0),
([['{'], ['"n_clients": 24,'], ['"ovpn_dco_available": false,'], ['"ovpn_dco_ver": "Kernel module not loaded"'], ['}']], 24),
Expand Down

0 comments on commit 36c7b7f

Please sign in to comment.