Esempio n. 1
0
 def handle(self, request, data):
     try:
         api.volume_delete(request, data['volume_id'])
         message = 'Deleting volume "%s"' % data['volume_id']
         LOG.info(message)
         messages.info(request, message)
     except novaclient_exceptions.ClientException, e:
         LOG.exception("ClientException in DeleteVolume")
         messages.error(request,
                        _('Error deleting volume: %s') % e.message)