diff options
author | lsmman <lsmman07@gmail.com> | 2021-10-11 16:51:29 +0900 |
---|---|---|
committer | Stephen Finucane <sfinucan@redhat.com> | 2023-02-22 10:14:21 +0000 |
commit | e53f706d0b913d5d2c97ebc41e6bb4258640074f (patch) | |
tree | 666572024cef4ce967e3206f1abec915bd004c8d | |
parent | ec01268ea93141439542fb162a6a12bc2bf533fe (diff) | |
download | python-openstackclient-e53f706d0b913d5d2c97ebc41e6bb4258640074f.tar.gz |
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
-rw-r--r-- | openstackclient/image/v2/image.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/openstackclient/image/v2/image.py b/openstackclient/image/v2/image.py index 4adaadda..71dcc731 100644 --- a/openstackclient/image/v2/image.py +++ b/openstackclient/image/v2/image.py @@ -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", |