Skip to content

Commit 0b88c0b

Browse files
authored
fix: remove hardcoded defaults for args and command (#875)
1 parent 4b6d9c8 commit 0b88c0b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • components/renku_data_services/session

components/renku_data_services/session/db.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,6 +1003,12 @@ async def _refresh_build(self, build: schemas.BuildORM, session: AsyncSession, u
10031003
# TODO: move this to its own method where build parameters determine args
10041004
environment = build.environment
10051005
environment.container_image = build.result_image
1006+
# An older version was hardcoding the values but we can and should
1007+
# rely on the defaults for args and command
1008+
if environment.command is not None:
1009+
environment.command = None
1010+
if environment.args is not None:
1011+
environment.args = None
10061012

10071013
await session.flush()
10081014
await session.refresh(build)

0 commit comments

Comments
 (0)