From 27eee85317482ca29b92ef376cd8bfb80db215a8 Mon Sep 17 00:00:00 2001 From: Lars Kiesow Date: Fri, 14 Apr 2023 00:24:09 +0200 Subject: [PATCH] Remove unused parameters The API does not yet support adding a firewall profile directly when adding an IP address. This removes the (hardcoded) option send to the API. While this does have no effect at the moment, it could cause problems in the future. --- deterrersapi/__init__.py | 1 - setup.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/deterrersapi/__init__.py b/deterrersapi/__init__.py index b529b60..f0cfba1 100644 --- a/deterrersapi/__init__.py +++ b/deterrersapi/__init__.py @@ -117,7 +117,6 @@ def add(self, ipv4: str, admins: list[str]) -> None: :type admins: list[str] ''' data = {'ipv4_addr': ipv4, - 'service_profile': 'Multipurpose', 'admin_ids': admins} return self.__post('host/', data) diff --git a/setup.py b/setup.py index 71c853a..91c01a0 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ def read(filename): setup( name='deterrers-api', - version='0.1', + version='0.2', description='Python API client for DETERRERS', url='https://github.com/virtUOS/deterrers-api', author='Lars Kiesow',