diff --git a/Packs/Tenable_io/Integrations/Tenable_io/Tenable_io.py b/Packs/Tenable_io/Integrations/Tenable_io/Tenable_io.py index 004a2d995127..fe0bb26df67e 100644 --- a/Packs/Tenable_io/Integrations/Tenable_io/Tenable_io.py +++ b/Packs/Tenable_io/Integrations/Tenable_io/Tenable_io.py @@ -279,10 +279,11 @@ def get_vuln_export_status(self, export_uuid: str): """ res = self._http_request(method='GET', url_suffix=f'/vulns/export/{export_uuid}/status', - headers=self._headers) - status = res.get('status') - chunks_available = res.get('chunks_available', []) - return status, chunks_available + headers=self._headers, ok_codes=(200, 404)) + if isinstance(res, dict) and (res.get("status") == 404 or res.get('error')): + return 'ERROR', [] + + return res.get('status'), res.get('chunks_available') or [] def download_vulnerabilities_chunk(self, export_uuid: str, chunk_id: int): """ @@ -331,7 +332,10 @@ def get_assets_export_status(self, export_uuid): Returns: The assets' chunk id. """ - res = self._http_request(method='GET', url_suffix=f'assets/export/{export_uuid}/status', headers=self._headers) + res = self._http_request(method='GET', url_suffix=f'assets/export/{export_uuid}/status', headers=self._headers, + ok_codes=(200, 404)) + if isinstance(res, dict) and (res.get("status") == 404 or res.get('error')): + return 'ERROR', [] return res.get('status'), res.get('chunks_available') def download_assets_chunk(self, export_uuid: str, chunk_id: int): diff --git a/Packs/Tenable_io/ReleaseNotes/2_2_5.md b/Packs/Tenable_io/ReleaseNotes/2_2_5.md new file mode 100644 index 000000000000..f78354618886 --- /dev/null +++ b/Packs/Tenable_io/ReleaseNotes/2_2_5.md @@ -0,0 +1,6 @@ + +#### Integrations + +##### Tenable Vulnerability Management (formerly Tenable.io) + +- Fixed an issue where the ***fetch-assets*** command did not pull new assets or vulnerabilities. diff --git a/Packs/Tenable_io/pack_metadata.json b/Packs/Tenable_io/pack_metadata.json index a9aa7356950e..cb38ef564229 100644 --- a/Packs/Tenable_io/pack_metadata.json +++ b/Packs/Tenable_io/pack_metadata.json @@ -2,7 +2,7 @@ "name": "Tenable Vulnerability Management (formerly Tenable.io)", "description": "A comprehensive asset centric solution to accurately track resources while accommodating dynamic assets such as cloud, mobile devices, containers and web applications.", "support": "xsoar", - "currentVersion": "2.2.4", + "currentVersion": "2.2.5", "author": "Cortex XSOAR", "url": "https://www.paloaltonetworks.com/cortex", "email": "",