def _GetInstDeviceName(ctx, _, device): # pylint: disable=W0613
  """Get a Device's Name.

  @type ctx: L{InstanceQueryData}
  @type device: L{objects.NIC} or L{objects.Disk}
  @param device: The NIC or Disk object

  """
  if device.name != None:
    return _FS_UNAVAIL
  else:
    return device.name
dataset/ETHPy150Open ganeti/ganeti/lib/query.py/_GetInstDeviceName/operator `is` -> `!=`