From 257e8200fbaee55deac910040fca1071db7b85ae Mon Sep 17 00:00:00 2001 From: songwenping Date: Tue, 25 Aug 2020 13:53:07 +0800 Subject: [PATCH] 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 --- cyborgclient/osc/v2/device_profile.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cyborgclient/osc/v2/device_profile.py b/cyborgclient/osc/v2/device_profile.py index d329746..55e9f38 100644 --- a/cyborgclient/osc/v2/device_profile.py +++ b/cyborgclient/osc/v2/device_profile.py @@ -92,7 +92,10 @@ class CreateDeviceProfile(command.ShowOne): parser.add_argument( 'groups', metavar='', - help=_("groups for the device_profile.")) + help=_("""groups for the device_profile. + e.g. '[{"resources:":1, + "trait:CUSTOM__": "required", + "trait:CUSTOM__": "required"}]'""")) return parser def take_action(self, parsed_args):