Add missing documentation for state options for "image set"

The current "image set" with the state option behaves as follows: if you
use --project, it updates the membership status of the given project.

When this command was first added, it had the following description:

  If --project is passed, update the membership status for the given project

However, the description was missed when moving the documentation for
which command to the parser for each command method in commit f055fe67c.
Correct this oversight.

Co-authored-by: JAE YONG LEE <jaeljy135@gmail.com>
Change-Id: I18a29a19ce973971f68a52cbf4020cfa324c7a35
This commit is contained in:
lsmman 2021-10-11 16:51:29 +09:00 committed by Stephen Finucane
parent ec01268ea9
commit e53f706d0b
1 changed files with 8 additions and 2 deletions

View File

@ -1206,7 +1206,10 @@ class SetImage(command.Command):
const="accepted",
dest="membership",
default=None,
help=_("Accept the image membership"),
help=_(
"Accept the image membership for either the project indicated "
"by '--project', if provided, or the current user's project"
),
)
membership_group.add_argument(
"--reject",
@ -1214,7 +1217,10 @@ class SetImage(command.Command):
const="rejected",
dest="membership",
default=None,
help=_("Reject the image membership"),
help=_(
"Reject the image membership for either the project indicated "
"by '--project', if provided, or the current user's project"
),
)
membership_group.add_argument(
"--pending",