Skip to content

Commit

Permalink
autopep8 error resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
sudhanshu-metron committed Oct 30, 2024
1 parent 53a8606 commit 1c4599f
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import demistomock as demisto # noqa: F401
from CommonServerPython import * # noqa: F401
from typing import Dict


def get_guid_from_system_incident(incident: Dict[str, Any]) -> str:
def get_guid_from_system_incident(incident: dict[str, Any]) -> str:
malop_guid = ''
for label in incident['labels']:
if label['type'] == 'GUID':
Expand All @@ -17,9 +16,9 @@ def get_guid_from_system_incident(incident: Dict[str, Any]) -> str:
for inc in incident:
malop_guid = get_guid_from_system_incident(inc)
response = execute_command(
'getIncidents',
{'query': f'name:"Cybereason Malop {malop_guid}"'}
)
'getIncidents',
{'query': f'name:"Cybereason Malop {malop_guid}"'}
)
malop_incident = response['data']
demisto.debug(f"malop incident - {malop_incident}")
if malop_incident:
Expand Down

0 comments on commit 1c4599f

Please sign in to comment.