@utils.arg('server', metavar='<server>', help=_('Name or ID of server.'))
@utils.arg('secgroup', metavar='<secgroup>', help=_('Name or ID of Security Group.'))
def do_add_secgroup(cs, args):
 server = _find_server(cs, args.server)
 server.add_security_group(args.secgroup)

@ utils . arg ( 'server' , metavar = '<server>' , help = _ ( 'Name or ID of server.' ) ) @ utils . arg ( 'secgroup' , metavar = '<secgroup>' , help = _ ( 'Name or ID of Security Group.' ) ) def do_add_secgroup ( cs , args ) : server = _find_server ( cs , args . server ) server . add_security_group ( args . secgroup )
add a security group to a server .