Ejemplo n.º 1
0
    def get_state(self):
        """This source is ready for the installation to start.

        :return: one of the supported state of SourceState enum
        :rtype: pyanaconda.modules.payloads.constants.SourceState enum value
        """
        res = os.path.ismount(self._mount_point)
        return SourceState.from_bool(res)
Ejemplo n.º 2
0
 def get_state(self):
     """Get state of this source."""
     return SourceState.from_bool(self.get_mount_state())
Ejemplo n.º 3
0
 def get_state(self):
     """Get state of this source."""
     res = os.path.ismount(self._device_mount) and bool(
         self._install_tree_path)
     return SourceState.from_bool(res)