Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Regression of session create-from-template command #2761

Merged
merged 3 commits into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/2761.fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix regression error of `session create_from_template` command.
4 changes: 3 additions & 1 deletion src/ai/backend/client/cli/session/lifecycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,9 @@ def create_from_template(
else undefined
)
prepared_mount, prepared_mount_map, _ = (
prepare_mount_arg(mount) if len(mount) > 0 or no_mount else (undefined, undefined)
prepare_mount_arg(mount)
if len(mount) > 0 or no_mount
else (undefined, undefined, undefined)
)
kwargs = {
"name": name,
Expand Down