@utils.arg('name', metavar='<name>', help=_('Server group name.'))
@utils.arg('policy', metavar='<policy>', nargs='+', help=_('Policies for the server groups.'))
def do_server_group_create(cs, args):
 kwargs = {'name': args.name, 'policies': args.policy}
 server_group = cs.server_groups.create(**kwargs)
 _print_server_group_details(cs, [server_group])

@ utils . arg ( 'name' , metavar = '<name>' , help = _ ( 'Server group name.' ) ) @ utils . arg ( 'policy' , metavar = '<policy>' , nargs = '+' , help = _ ( 'Policies for the server groups.' ) ) def do_server_group_create ( cs , args ) : kwargs = { 'name' : args . name , 'policies' : args . policy } server_group = cs . server_groups . create ( ** kwargs ) _print_server_group_details ( cs , [ server_group ] )
create a new server group with the specified details .