def _GetInstDiskUsage(ctx, inst):
  usage = ctx.disk_usage[inst.uuid]

  if usage is None:
    usage = 0

  return usage
Get disk usage for an instance.
dataset/ETHPy150Open ganeti/ganeti/lib/query.py/_GetInstDiskUsage