@utils.arg('secgroup', metavar='<secgroup>', help=_('ID or name of security group.'))
@utils.arg('name', metavar='<name>', help=_('Name of security group.'))
@utils.arg('description', metavar='<description>', help=_('Description of security group.'))
@deprecated_network
def do_secgroup_update(cs, args):
 sg = _get_secgroup(cs, args.secgroup)
 secgroup = cs.security_groups.update(sg, args.name, args.description)
 _print_secgroups([secgroup])

@ utils . arg ( 'secgroup' , metavar = '<secgroup>' , help = _ ( 'ID or name of security group.' ) ) @ utils . arg ( 'name' , metavar = '<name>' , help = _ ( 'Name of security group.' ) ) @ utils . arg ( 'description' , metavar = '<description>' , help = _ ( 'Description of security group.' ) ) @ deprecated_network def do_secgroup_update ( cs , args ) : sg = _get_secgroup ( cs , args . secgroup ) secgroup = cs . security_groups . update ( sg , args . name , args . description ) _print_secgroups ( [ secgroup ] )
update a security group .