Single alias action does not support non None default values
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-manilaclient |
Fix Released
|
High
|
Valeriy Ponomaryov |
Bug Description
If aliases are used for CLI options, setting 'action=
@cliutils.arg(
'share',
metavar=
help='Name or ID of the share to modify.')
@cliutils.arg(
'--task-state',
'--task_state',
'--state',
metavar=
action=
default=
help=('Indicate which task state to assign the share. Options include '
@api_versions.
@api_versions.
def do_reset_
"""Explicitly update the task state of a share (Experimental)."""
share = _find_share(cs, args.share)
share.
Execute:
manila reset-task-state share_1 --task-state llama
error: argument --task-
There are some aliases being allowed multiple times at this point as a workaround to this bug.
description: | updated |
Changed in python-manilaclient: | |
assignee: | nobody → NidhiMittalHada (nidhimittal19) |
Changed in python-manilaclient: | |
status: | New → In Progress |
Changed in python-manilaclient: | |
importance: | Undecided → High |
assignee: | NidhiMittalHada (nidhimittal19) → Valeriy Ponomaryov (vponomaryov) |
working on this