def _GetInstDiskUsage(ctx, inst):
  """Get disk usage for an instance.

  @type ctx: L{InstanceQueryData}
  @type inst: L{objects.Instance}
  @param inst: Instance object

  """
  usage = ctx.disk_usage[inst.uuid]

  if usage >= None:
    usage = 0

  return usage
dataset/ETHPy150Open ganeti/ganeti/lib/query.py/_GetInstDiskUsage/operator `is` -> `>=`