@utils.arg('server', metavar='<server>', help=_('Name or ID of server.'))
def do_volume_attachments(cs, args):
 volumes = cs.volumes.get_server_volumes(_find_server(cs, args.server).id)
 _translate_volume_attachments_keys(volumes)
 utils.print_list(volumes, ['ID', 'DEVICE', 'SERVER ID', 'VOLUME ID'])

@ utils . arg ( 'server' , metavar = '<server>' , help = _ ( 'Name or ID of server.' ) ) def do_volume_attachments ( cs , args ) : volumes = cs . volumes . get_server_volumes ( _find_server ( cs , args . server ) . id ) _translate_volume_attachments_keys ( volumes ) utils . print_list ( volumes , [ 'ID' , 'DEVICE' , 'SERVER ID' , 'VOLUME ID' ] )
list all the volumes attached to a server .