Skip to content

Commit 2a22b3d

Browse files
ID-1477 Fix cli to be able to change watched and ignored state.
1 parent 786873a commit 2a22b3d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

domaintools/api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,8 @@ def iris_detect_manage_watchlist_domains(self, watchlist_domain_ids, state, **kw
534534
535535
state: str: required. Valid values are: ["watched", "ignored"]
536536
"""
537+
if isinstance(watchlist_domain_ids, str):
538+
watchlist_domain_ids = watchlist_domain_ids.split(',')
537539
return self._results('iris-detect-manage-watchlist-domains', '/v1/iris-detect/domains/', state=state,
538540
watchlist_domain_ids=watchlist_domain_ids, items_path=('watchlist_domains',),
539541
response_path=(), **kwargs)

domaintools/cli.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ def run(): # pragma: no cover
7575
sys.stderr.write('Credentials are required to perform API calls.\n')
7676
sys.exit(1)
7777

78-
api = API(user, key, https=arguments.pop('https'), verify_ssl=arguments.pop('verify_ssl'),
79-
rate_limit=arguments.pop('rate_limit'))
78+
api = API(user, key, verify_ssl=arguments.pop('verify_ssl'), rate_limit=arguments.pop('rate_limit'))
8079
api_call = arguments.pop('api_call')
8180
response = getattr(api, api_call)(**arguments)
8281
if api_call in ["available_api_calls"]:

0 commit comments

Comments
 (0)