def handle(self, request, data):
     try:
         flavor_id = data['flavorid']
         flavor = api.flavor_get(request, flavor_id)
         LOG.info('Deleting flavor with id "%s"' % flavor_id)
         api.flavor_delete(request, flavor_id, False)
         messages.info(request, 'Successfully deleted flavor: %s' %
                       flavor.name)
     except api_exceptions.ApiException, e:
         messages.error(request, 'Unable to delete flavor: %s' %
                                  e.message)
Ejemplo n.º 2
0
 def delete(self, request, obj_id):
     api.flavor_delete(request, obj_id)
Ejemplo n.º 3
0
 def delete(self, request, obj_id):
     api.flavor_delete(request, obj_id)