Skip to content

Commit b48a137

Browse files
committed
Fix list_models call to collect only from target project
1 parent d99239a commit b48a137

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
@@ -192,7 +192,9 @@ def create_performance_definition(
192192
# If no models were specified, search the supplied project for all models
193193
if not models:
194194
project = mr.get_project(project)
195-
models = mr.list_models(parentId=project.id)
195+
models = mr.list_models(filter="eq(projectName, '{projectName}')".format(projectName=project.name))
196+
197+
# Separate single models from multiple models
196198
if not isinstance(models, list):
197199
models = [models]
198200
for i, model in enumerate(models):

0 commit comments

Comments
 (0)