Skip to content

Commit b60b930

Browse files
committed
Fix list_models call to collect only from target project
1 parent 58179aa commit b60b930

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sasctl/_services/model_management.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,9 @@ def create_performance_definition(
195195
# If no models were specified, search the supplied project for all models
196196
if not models:
197197
project = mr.get_project(project)
198-
models = mr.list_models(parentId=project.id)
198+
models = mr.list_models(filter="eq(projectName, '{projectName}')".format(projectName=project.name))
199+
200+
# Separate single models from multiple models
199201
if not isinstance(models, list):
200202
models = [models]
201203
for i, model in enumerate(models):

0 commit comments

Comments
 (0)