From eb835ce93e0466155b6695b6a7a4715df8d2c480 Mon Sep 17 00:00:00 2001 From: Steven Serrata <9343811+sserrata@users.noreply.github.com> Date: Wed, 15 Apr 2020 14:54:14 -0500 Subject: [PATCH] Alpha12 (#158) * Minor formatting * Bump version * Update HISTORY.md --- HISTORY.md | 4 ++++ pan_cortex_data_lake/__init__.py | 2 +- pan_cortex_data_lake/query.py | 1 + setup.cfg | 2 +- setup.py | 2 +- 5 files changed, 8 insertions(+), 3 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index f91bb44..e8ea4e8 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,5 +1,9 @@ # History +## 2.0.0-alpha12 (2020-04-15) + +- Allow non-200 HTTP status responses in `iter_job_results()`. + ## 2.0.0-alpha11 (2020-04-13) - Refrain from passing credentials kwarg to get_job_results() in iter_job_results(), fixes #154 diff --git a/pan_cortex_data_lake/__init__.py b/pan_cortex_data_lake/__init__.py index 7f28d82..e659aeb 100644 --- a/pan_cortex_data_lake/__init__.py +++ b/pan_cortex_data_lake/__init__.py @@ -3,7 +3,7 @@ """Main package for cortex.""" __author__ = "Palo Alto Networks" -__version__ = "2.0.0-a11" +__version__ = "2.0.0-a12" from .exceptions import ( # noqa: F401 CortexError, diff --git a/pan_cortex_data_lake/query.py b/pan_cortex_data_lake/query.py index 63b4a28..0aec80b 100644 --- a/pan_cortex_data_lake/query.py +++ b/pan_cortex_data_lake/query.py @@ -231,6 +231,7 @@ def iter_job_results( ]: if value is not None: params.update({name: value}) + while True: r = self.get_job_results( job_id=job_id, params=params, enforce_json=enforce_json, **kwargs diff --git a/setup.cfg b/setup.cfg index 1d4fd2a..1d84f5a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 2.0.0a11 +current_version = 2.0.0a12 commit = True tag = True diff --git a/setup.py b/setup.py index dfb9f8d..3ec80b8 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ setup( name="pan-cortex-data-lake", - version="2.0.0-a11", + version="2.0.0-a12", description="Python idiomatic SDK for Cortex™ Data Lake.", long_description=readme + "\n\n" + history, long_description_content_type="text/markdown",