Skip to content

Commit

Permalink
bugfix & prep for 1.5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jlwalke2 committed Mar 26, 2021
1 parent fa71d8a commit 742bf3d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/sasctl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
4 changes: 3 additions & 1 deletion src/sasctl/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 742bf3d

Please sign in to comment.