Skip to content

Commit a9afee9

Browse files
committed
Add secondary check for model publish in get_model_link
1 parent 108e559 commit a9afee9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sasctl/_services/model_management.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ def publish_model(
5959
model_name = model.name if hasattr(model, "name") else str(model)
6060
raise ValueError("Model '{}' was not found.".format(model_name))
6161

62-
model_uri = mr.get_model_link(model_obj, "self")
62+
# Include refresh in case get_model call does not return enough information
63+
model_uri = mr.get_model_link(model_obj, "self", True)
6364

6465
# TODO: Verify allowed formats by destination type.
6566
# As of 19w04 MAS throws HTTP 500 if name is in invalid format.

0 commit comments

Comments
 (0)