Skip to content

Commit b873d50

Browse files
committed
set predictionVariable on project creation
1 parent 3af0ef8 commit b873d50

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/sasctl/tasks.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,12 @@ def get_version(x):
292292
targetLevel=target_level,
293293
predictionVariable=prediction_variable)
294294

295+
# As of Viya 3.4 the 'predictionVariable' parameter is not set during
296+
# project creation. Update the project if necessary.
297+
if project.get('predictionVariable') != prediction_variable:
298+
project['predictionVariable'] = prediction_variable
299+
mr.update_project(project)
300+
295301
model = mr.create_model(model, project)
296302

297303
assert isinstance(model, RestObj)

0 commit comments

Comments
 (0)