parameters: (device)
return_statement: return ''
docstring: Parses the ``ID_PART_ENTRY_TYPE`` from the "low level" (bypasses the cache)
      output that uses the ``udev`` type of output. This output is intended to be
      used for udev rules, but it is useful in this case as it is the only
      consistent way to retrieve the GUID used by ceph-disk to identify devices.
docstring_summary: Parses the ``ID_PART_ENTRY_TYPE`` from the "low level" (bypasses the cache)
      output that uses the ``udev`` type of output. This output is intended to be
      used for udev rules, but it is useful in this case as it is the only
      consistent way to retrieve the GUID used by ceph-disk to identify devices.
docstring_tokens: Parses the ID_PART_ENTRY_TYPE from the low level ( bypasses the cache ) output that uses the udev type of output . This output is intended to be used for udev rules but it is useful in this case as it is the only consistent way to retrieve the GUID used by ceph - disk to identify devices .
function: def get_part_entry_type(device):
      """
      Parses the ``ID_PART_ENTRY_TYPE`` from the "low level" (bypasses the cache)
      output that uses the ``udev`` type of output. This output is intended to be
      used for udev rules, but it is useful in this case as it is the only
      consistent way to retrieve the GUID used by ceph-disk to identify devices.
      """
      out, err, rc = process.call(['blkid', '-c', '/dev/null', '-p', '-o', 'udev', device])
      for line in out:
          if 'ID_PART_ENTRY_TYPE=' in line:
              return line.split('=')[-1].strip()
      return ''
function_tokens: def get_part_entry_type ( device ) : out , err , rc = process . call ( [ 'blkid' , '-c' , '/dev/null' , '-p' , '-o' , 'udev' , device ] ) for line in out : if 'ID_PART_ENTRY_TYPE=' in line : return line . split ( '=' ) [ - 1 ] . strip ( ) return ''