Пример #1
0
 def statistic_snapshot_create_error(self, req, start=None, end=None):
     """
     list all failed created images,
     then statistic for operations.
     """
     success, error = self._statistic_snapshot_operation(req, start, end)
     error = list_filter.filter_snapshot_error(req, error)
     error = list_sort.sort_snapshot_error(req, error)
     ret = {"ErrorSnapshotOperation": len(error), "FaultList": error}
     if start is not None:
         ret.update(start=start)
     if end is not None:
         ret.update(end=end)
     return ret