code: def _linux_nqn():
      '''
      Return NVMe NQN from a Linux host.
      '''
      ret = []
  
      initiator = '/etc/nvme/hostnqn'
      try:
          with salt.utils.files.fopen(initiator, 'r') as _nvme:
              for line in _nvme:
                  line = line.strip()
                  if line.startswith('nqn.'):
                      ret.append(line)
      except IOError as ex:
          if ex.errno != errno.ENOENT:
              log.debug("Error while accessing '%s': %s", initiator, ex)
  
      return ref _linux_nqn():
      '''
      Return NVMe NQN from a Linux host.
      '''
      ret = []
  
      initiator = '/etc/nvme/hostnqn'
      try:
          with salt.utils.files.fopen(initiator, 'r') as _nvme:
              for line in _nvme:
                  line = line.strip()
                  if line.startswith('nqn.'):
                      ret.append(line)
      except IOError as ex:
          if ex.errno != errno.ENOENT:
              log.debug("Error while accessing '%s': %s", initiator, ex)
  
      return ret
docs: Return NVMe NQN from a Linux host.