@utils.arg('server', metavar='<server>', help=_('Name or ID of server.'))
@utils.arg('attachment_id', metavar='<volume>', help=_('ID of the volume to detach.'))
def do_volume_detach(cs, args):
 cs.volumes.delete_server_volume(_find_server(cs, args.server).id, args.attachment_id)

@ utils . arg ( 'server' , metavar = '<server>' , help = _ ( 'Name or ID of server.' ) ) @ utils . arg ( 'attachment_id' , metavar = '<volume>' , help = _ ( 'ID of the volume to detach.' ) ) def do_volume_detach ( cs , args ) : cs . volumes . delete_server_volume ( _find_server ( cs , args . server ) . id , args . attachment_id )
detach a volume from a server .