From 8dcc64d1a455a71b63117963098a5525ba217518 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Tue, 17 May 2022 20:39:44 +0200 Subject: [PATCH] Fix typo --- omr-admin.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/omr-admin.py b/omr-admin.py index a344a34..f8d6693 100755 --- a/omr-admin.py +++ b/omr-admin.py @@ -1843,14 +1843,13 @@ def shorewall_close(*, params: Shorewallparams, current_user: User = Depends(get return {'result': 'done', 'reason': 'changes applied', 'route': 'shorewallclose'} class SipALGparams(BaseModel): - enable: Bool = Query(True, title="Enable or disable SIP ALG") + enable: bool = Query(True, title="Enable or disable SIP ALG") @app.post('/sipalg', summary="Enable/Disable SIP ALG") def sipalg(*, params: SipALGparams, current_user: User = Depends(get_current_user)): if current_user.permissions == "ro": return {'result': 'permission', 'reason': 'Read only user', 'route': 'sipalg'} enable = params.enable - DONT_LOAD=nf_conntrack_sip initial_md5 = hashlib.md5(file_as_bytes(open('/etc/shorewall/shorewall.conf', 'rb'))).hexdigest() fd, tmpfile = mkstemp()