@utils.arg('aggregate', metavar='<aggregate>', help=_('Name or ID of aggregate.'))
@utils.arg('host', metavar='<host>', help=_('The host to add to the aggregate.'))
def do_aggregate_add_host(cs, args):
 aggregate = _find_aggregate(cs, args.aggregate)
 aggregate = cs.aggregates.add_host(aggregate.id, args.host)
 print((_('Host %(host)s has been successfully added for aggregate %(aggregate_id)s ') % {'host': args.host, 'aggregate_id': aggregate.id}))
 _print_aggregate_details(cs, aggregate)

@ utils . arg ( 'aggregate' , metavar = '<aggregate>' , help = _ ( 'Name or ID of aggregate.' ) ) @ utils . arg ( 'host' , metavar = '<host>' , help = _ ( 'The host to add to the aggregate.' ) ) def do_aggregate_add_host ( cs , args ) : aggregate = _find_aggregate ( cs , args . aggregate ) aggregate = cs . aggregates . add_host ( aggregate . id , args . host ) print ( ( _ ( 'Host %(host)s has been successfully added for aggregate %(aggregate_id)s ' ) % { 'host' : args . host , 'aggregate_id' : aggregate . id } ) ) _print_aggregate_details ( cs , aggregate )
add the host to the specified aggregate .