diff --git a/phantom_connector.py b/phantom_connector.py index 62f0dc8..99548b5 100644 --- a/phantom_connector.py +++ b/phantom_connector.py @@ -589,7 +589,7 @@ def _find_artifacts(self, param): return action_result.set_status(phantom.APP_ERROR, 'Error retrieving records: {0}'.format(action_result.get_message())) if PAGINATION_COMPLETE in action_result.get_message(): - break + break records += resp_data['data'] if max_results != 0 and count >= max_results: diff --git a/phantom_consts.py b/phantom_consts.py index 5c47327..76c9ee9 100644 --- a/phantom_consts.py +++ b/phantom_consts.py @@ -46,4 +46,4 @@ PHANTOM_ERR_GET_VAULT_INFO = "Failed to get the vault info: {}" ARTIFACT_DEFAULT_MAX_RESULTS = 10 -PAGINATION_COMPLETE = "That page contains no results" \ No newline at end of file +PAGINATION_COMPLETE = "That page contains no results"