Skip to content

Commit 8323bdd

Browse files
committed
cleanup & increment version
1 parent 7d4f02b commit 8323bdd

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ Unreleased
33
----------
44
**Bugfixes**
55
- Fixed DS2 score code for CAS that was generated when registering a Python model.
6-
6+
- `PyMAS.score_code(dest='ESP')` corrected to `dest='EP'`
7+
78

89
v1.1.1 (2019-8-6)
910
-----------------

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.1.1'
7+
__version__ = '1.1.2'
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: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def publish_model(model, destination, code=None, max_retries=60,
248248
def submit_request():
249249
# Submit a publishing request
250250
if code is None:
251-
publish_req = mm.publish_model(model, destination, force=replace, **kwargs)
251+
publish_req = mm.publish_model(model, destination, **kwargs)
252252
else:
253253
publish_req = mp.publish_model(model, destination,
254254
code=code, **kwargs)
@@ -262,7 +262,9 @@ def submit_request():
262262
# Submit and wait for status
263263
job = submit_request()
264264

265-
if job.state.lower() == 'completed' and job.destination.destinationType != 'microAnalyticService':
265+
# If model was successfully published and it isn't a MAS module, we're done
266+
if job.state.lower() == 'completed' \
267+
and job.destination.destinationType != 'microAnalyticService':
266268
return request_link(job,'self')
267269

268270
# If MAS publish failed and replace=True, attempt to delete the module

0 commit comments

Comments
 (0)