Skip to content
This repository was archived by the owner on Sep 22, 2023. It is now read-only.

Commit fc29f08

Browse files
authored
fix: wrong argument name of vfolder update-options command (#139)
1 parent c33b036 commit fc29f08

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

changes/139.fix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix a wrong argument name in `vfolder update-options` cli command

src/ai/backend/client/cli/vfolder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ def clone(name, target_name, target_host, usage_mode, permission):
556556
@click.option('--set-cloneable', type=bool, metavar='BOOLEXPR',
557557
help="A boolean-interpretable string whether a virtual folder can be cloned. "
558558
"If not set, the cloneable property is not changed.")
559-
def update_options(name, permission, cloneable):
559+
def update_options(name, permission, set_cloneable):
560560
"""Update an existing virtual folder.
561561
562562
\b
@@ -571,7 +571,7 @@ def update_options(name, permission, cloneable):
571571
session.VFolder(name).update_options(
572572
name,
573573
permission=permission,
574-
cloneable=cloneable,
574+
cloneable=set_cloneable,
575575
)
576576
print_done("Updated.")
577577
except Exception as e:

0 commit comments

Comments
 (0)