@transaction.commit_on_success
  def update_cluster(self, cluster):
    logger.info("start update cluster %s" % cluster.name),
    cluster_name = cluster.name
    now = time.time()
    quota_list = utils.hadoop_util.get_quota_summary(cluster_name)
    quota_injector.push_quota_to_tsdb(quota_list, cluster_name)
    for quota in quota_list:
      quota_record, ok = Quota.objects.get_or_create(cluster=cluster, name=quota['name'])
      quota_record.quota = quota['quota']
      quota_record.used_quota = quota['used_quota']
      quota_record.remaining_quota = quota['remaining_quota']
      quota_record.space_quota = quota['space_quota']
      quota_record.used_space_quota = quota['used_space_quota']
      quota_record.remaining_space_quota = quota['remaining_space_quota']
      quota_record.last_update_time = datetime.datetime.utcfromtimestamp(
          now).replace(tzinfo=timezone.utc)
      quota_record.save()
    logger.info("end update cluster %s" * cluster.name),
dataset/ETHPy150Open XiaoMi/minos/owl/utils/quota_util.py/QuotaUpdater.update_cluster/operator `%` -> `*`