Add e.g. for groups when create device profile

It is difficult to create device profile with command because of
the groups parameter is hard to pass, so add e.g. for the command
``openstack help accelerator device profile create``, that we
can get the example for the `group` parameter.

Change-Id: I6afa3ec4c3cc0d14d0632ff821fdf200c736da0e
This commit is contained in:
songwenping 2020-08-25 13:53:07 +08:00
parent 64dc2bbe9e
commit 257e8200fb

View File

@ -92,7 +92,10 @@ class CreateDeviceProfile(command.ShowOne):
parser.add_argument(
'groups',
metavar='<groups>',
help=_("groups for the device_profile."))
help=_("""groups for the device_profile.
e.g. '[{"resources:<type>":1,
"trait:CUSTOM_<type>_<product_id>": "required",
"trait:CUSTOM_<type>_<vendor>": "required"}]'"""))
return parser
def take_action(self, parsed_args):