Skip to content

Commit e53f706

Browse files
lsmmanjaeyoung0826
authored andcommitted
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 f055fe6. Correct this oversight. Co-authored-by: JAE YONG LEE <jaeljy135@gmail.com> Change-Id: I18a29a19ce973971f68a52cbf4020cfa324c7a35
1 parent ec01268 commit e53f706

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

openstackclient/image/v2/image.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,15 +1206,21 @@ def get_parser(self, prog_name):
12061206
const="accepted",
12071207
dest="membership",
12081208
default=None,
1209-
help=_("Accept the image membership"),
1209+
help=_(
1210+
"Accept the image membership for either the project indicated "
1211+
"by '--project', if provided, or the current user's project"
1212+
),
12101213
)
12111214
membership_group.add_argument(
12121215
"--reject",
12131216
action="store_const",
12141217
const="rejected",
12151218
dest="membership",
12161219
default=None,
1217-
help=_("Reject the image membership"),
1220+
help=_(
1221+
"Reject the image membership for either the project indicated "
1222+
"by '--project', if provided, or the current user's project"
1223+
),
12181224
)
12191225
membership_group.add_argument(
12201226
"--pending",

0 commit comments

Comments
 (0)