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 b60b930 commit 5de5692Copy full SHA for 5de5692
src/sasctl/_services/model_management.py
@@ -199,9 +199,11 @@ def create_performance_definition(
199
200
# Separate single models from multiple models
201
if not isinstance(models, list):
202
- models = [models]
203
- for i, model in enumerate(models):
204
- 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.
205
+ for i, model in enumerate(models):
206
+ models[i] = mr.get_model(model)
207
if not project:
208
project = mr.get_project(models[0].projectId)
209
0 commit comments