From 3b68ae083fb6d95f22857a33e2bee5400bd8bd9b Mon Sep 17 00:00:00 2001 From: octodog Date: Fri, 23 Aug 2024 17:36:39 +0900 Subject: [PATCH] fix: Regression of `session create-from-template` command (#2761) (#2762) Co-authored-by: Gyubong Lee --- changes/2761.fix.md | 1 + src/ai/backend/client/cli/session/lifecycle.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changes/2761.fix.md diff --git a/changes/2761.fix.md b/changes/2761.fix.md new file mode 100644 index 0000000000..96e0618325 --- /dev/null +++ b/changes/2761.fix.md @@ -0,0 +1 @@ +Fix regression error of `session create_from_template` command. diff --git a/src/ai/backend/client/cli/session/lifecycle.py b/src/ai/backend/client/cli/session/lifecycle.py index 1b58f8e7f0..cc5bbfd3bb 100644 --- a/src/ai/backend/client/cli/session/lifecycle.py +++ b/src/ai/backend/client/cli/session/lifecycle.py @@ -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,