Exemple #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)
Exemple #2
0
 def get_state(self):
     """Get state of this source."""
     return SourceState.from_bool(self.get_mount_state())
Exemple #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)