Skip to content

Commit

Permalink
Merge pull request #3933 from jestabro/add-missing-standard-func
Browse files Browse the repository at this point in the history
T6632: add missing standard functions to config scripts
  • Loading branch information
dmbaturin authored Aug 2, 2024
2 parents b5e3612 + 31de012 commit 998df24
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/conf_mode/interfaces_wireguard.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ def verify(wireguard):

public_keys.append(peer['public_key'])

def generate(wireguard):
return None

def apply(wireguard):
check_kmod('wireguard')

Expand Down
3 changes: 3 additions & 0 deletions src/conf_mode/system_acceleration.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ def verify(qat):
if not data:
raise ConfigError('No QAT acceleration device found')

def generate(qat):
return

def apply(qat):
# Shutdown VPN service which can use QAT
if 'ipsec' in qat:
Expand Down
3 changes: 1 addition & 2 deletions src/tests/test_configd_inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ def test_signatures(self):
m = import_script(s)
for i in f_list:
f = getattr(m, i, None)
if not f:
continue
self.assertIsNotNone(f, f"'{s}': missing function '{i}'")
sig = signature(f)
par = sig.parameters
l = len(par)
Expand Down

0 comments on commit 998df24

Please sign in to comment.