Skip to content

Commit 5981297

Browse files
authored
XSUP-36299 FortiSIEM Fix Fetch Incident (demisto#34053)
* Failing UT * Fixed the issue * Updated RN
1 parent 647da91 commit 5981297

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

Packs/FortiSIEM/Integrations/FortiSIEMV2/FortiSIEMV2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,7 @@ def format_outputs_time_attributes_to_iso(outputs: List[dict]) -> List[dict]:
13861386
for entity in outputs:
13871387
for key, value in entity.items():
13881388
if any(time_key in key for time_key in time_keys) and value:
1389-
entity[key] = FormatIso8601(datetime.fromtimestamp(int(value) / 1000))
1389+
entity[key] = FormatIso8601(datetime.fromtimestamp(int(float(value)) / 1000))
13901390

13911391
return outputs
13921392

Packs/FortiSIEM/Integrations/FortiSIEMV2/test_data/triggered_events.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"attributes": {
1111
"Source TCP/UDP Port": 62835,
1212
"Source Interface SNMP Index": 29034,
13-
"Event Receive Time": 1646760881000,
13+
"Event Receive Time": "0.00",
1414
"Reporting IP": "192.168.30.254",
1515
"IP Protocol": 17,
1616
"Destination Country Code": "US",
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
#### Integrations
3+
4+
##### FortiSIEM v2
5+
6+
- Fixed an issue where the **fetch-incident** command failed to parse the time field correctly.

Packs/FortiSIEM/pack_metadata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "FortiSIEM",
33
"description": "Search and update events of FortiSIEM and manage resource lists.",
44
"support": "xsoar",
5-
"currentVersion": "2.0.34",
5+
"currentVersion": "2.0.35",
66
"author": "Cortex XSOAR",
77
"url": "https://www.paloaltonetworks.com/cortex",
88
"email": "",

0 commit comments

Comments
 (0)