Skip to content

Commit 742bf3d

Browse files
committed
bugfix & prep for 1.5.5
1 parent fa71d8a commit 742bf3d

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ Unreleased
22
----------
33
-
44

5-
v1.5.3 (2020-10-29)
5+
v1.5.5 (2021-03-26)
6+
-------------------
7+
**Bugfixes***
8+
- Fixed an issue with JSON parsing that caused the `publish_model` task to fail with Viya 4.0.
9+
10+
v1.5.4 (2020-10-29)
611
------------------
712
**Improvements**
813
- Added the `as_swat` method to the `Session` object, allowing connection to CAS through SWAT without an additional authentication step.

src/sasctl/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
55
# SPDX-License-Identifier: Apache-2.0
66

7-
__version__ = '1.5.4'
7+
__version__ = '1.5.5'
88
__author__ = 'SAS'
99
__credits__ = ['Yi Jian Ching, Lucas De Paula, James Kochuba, Peter Tobac, '
1010
'Chris Toth, Jon Walker']

src/sasctl/tasks.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,9 @@ def _parse_module_url(msg):
702702
module_url = get_link(details, 'module')
703703
module_url = module_url.get('href')
704704
except json.JSONDecodeError:
705-
match = re.search(r'(?:rel=module, href=(.*?),)', msg)
705+
match = re.search(r'(?:rel=module, href=(.*?),)', msg) # Vya 3.5
706+
if match is None:
707+
match = re.search(r'(?:Rel: module URI: (.*?) MediaType)', msg) # Format changed in Viya 4.0
706708
module_url = match.group(1) if match else None
707709

708710
return module_url

0 commit comments

Comments
 (0)