Skip to content

Commit

Permalink
Update Packs/GoogleThreatIntelligence/Integrations/GoogleThreatIntell…
Browse files Browse the repository at this point in the history
…igence/GoogleThreatIntelligence.py

Co-authored-by: israelpoli <[email protected]>
  • Loading branch information
pabloperezj and israelpoli authored Jul 11, 2024
1 parent ef729a2 commit 75ad3e2
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2679,8 +2679,6 @@ def _get_curated_collections_command(client: Client, args: dict, collection_type
"""Get Google Threat Intelligence collections for a given resource."""
resource = args['resource']
resource_type = args.get('resource_type', 'file').lower()
if resource_type not in ('file', 'hash', 'ip', 'url', 'domain'):
raise DemistoException(f'Could not find resource type of "{resource_type}"')
raw_response = client.curated_collections(resource, resource_type, collection_type)

data = raw_response.get('data', [])
Expand Down

0 comments on commit 75ad3e2

Please sign in to comment.