diff --git a/CHANGELOG.md b/CHANGELOG.md index db42d1a5..02f145fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,12 @@ Unreleased ---------- - -v1.5.3 (2020-10-29) + v1.5.5 (2021-03-26) + ------------------- + **Bugfixes*** + - Fixed an issue with JSON parsing that caused the `publish_model` task to fail with Viya 4.0. + +v1.5.4 (2020-10-29) ------------------ **Improvements** - Added the `as_swat` method to the `Session` object, allowing connection to CAS through SWAT without an additional authentication step. diff --git a/src/sasctl/__init__.py b/src/sasctl/__init__.py index 89a1c2c6..7d121b78 100644 --- a/src/sasctl/__init__.py +++ b/src/sasctl/__init__.py @@ -4,7 +4,7 @@ # Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 -__version__ = '1.5.4' +__version__ = '1.5.5' __author__ = 'SAS' __credits__ = ['Yi Jian Ching, Lucas De Paula, James Kochuba, Peter Tobac, ' 'Chris Toth, Jon Walker'] diff --git a/src/sasctl/tasks.py b/src/sasctl/tasks.py index e930ee87..68deaf41 100644 --- a/src/sasctl/tasks.py +++ b/src/sasctl/tasks.py @@ -702,7 +702,9 @@ def _parse_module_url(msg): module_url = get_link(details, 'module') module_url = module_url.get('href') except json.JSONDecodeError: - match = re.search(r'(?:rel=module, href=(.*?),)', msg) + match = re.search(r'(?:rel=module, href=(.*?),)', msg) # Vya 3.5 + if match is None: + match = re.search(r'(?:Rel: module URI: (.*?) MediaType)', msg) # Format changed in Viya 4.0 module_url = match.group(1) if match else None return module_url