Skip to content

Commit

Permalink
Remove unused parameters
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lkiesow committed Apr 13, 2023
1 parent 80c9923 commit 27eee85
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion deterrersapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 27eee85

Please sign in to comment.