Skip to content

Commit 7d4f02b

Browse files
committed
Merge branch 'bugfix' of https://github.com/sassoftware/python-sasctl into bugfix
2 parents ef9d7fb + 4a6a9b2 commit 7d4f02b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/sasctl/tasks.py

Lines changed: 4 additions & 1 deletion
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, **kwargs)
251+
publish_req = mm.publish_model(model, destination, force=replace, **kwargs)
252252
else:
253253
publish_req = mp.publish_model(model, destination,
254254
code=code, **kwargs)
@@ -262,6 +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':
266+
return request_link(job,'self')
267+
265268
# If MAS publish failed and replace=True, attempt to delete the module
266269
# and republish
267270
if job.state.lower() == 'failed' and replace and \

0 commit comments

Comments
 (0)