We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b48a137 commit 79e0182Copy full SHA for 79e0182
src/sasctl/_services/model_management.py
@@ -196,9 +196,11 @@ def create_performance_definition(
196
197
# Separate single models from multiple models
198
if not isinstance(models, list):
199
- models = [models]
200
- for i, model in enumerate(models):
201
- models[i] = mr.get_model(model)
+ models = mr.get_model(models)
+ else:
+ # Collect all models into a list. This converts the PagedList response from mr.list_models to a normal list.
202
+ for i, model in enumerate(models):
203
+ models[i] = mr.get_model(model)
204
if not project:
205
project = mr.get_project(models[0].projectId)
206
0 commit comments