(self, device, file_system, mount_point)
return self._partition_excluded(device, file_system, mount_point) or not self._partition_included(
            device, file_system, mount_point
        )
Return True for disks we don't want or that match regex in the config file
Return True for disks we don't want or that match regex in the config file
Return True for disks we don t want or that match regex in the config file
def _exclude_disk(self, device, file_system, mount_point):
        """
        Return True for disks we don't want or that match regex in the config file
        """

        if not device or device == 'none':
            device = None

            # Allow no device if `all_partitions` is true so we can evaluate mount points
            if not self._all_partitions:
                return True

        # Hack for NFS secure mounts
        # Secure mounts might look like this: '/mypath (deleted)', we should
        # ignore all the bits not part of the mount point name. Take also into
        # account a space might be in the mount point.
        mount_point = mount_point.rsplit(' ', 1)[0]

        return self._partition_excluded(device, file_system, mount_point) or not self._partition_included(
            device, file_system, mount_point
        )
def _exclude_disk ( self , device , file_system , mount_point ) : if not device or device == 'none' : device = None # Allow no device if `all_partitions` is true so we can evaluate mount points if not self . _all_partitions : return True # Hack for NFS secure mounts # Secure mounts might look like this: '/mypath (deleted)', we should # ignore all the bits not part of the mount point name. Take also into # account a space might be in the mount point. mount_point = mount_point . rsplit ( ' ' , 1 ) [ 0 ] return self . _partition_excluded ( device , file_system , mount_point ) or not self . _partition_included ( device , file_system , mount_point )