Ejemplo n.º 1
0
    def teardown_with_tasks(self):
        """Returns teardown tasks for this module.

        :return: a list installation tasks
        """
        storage = self.storage

        return [
            UnmountFilesystemsTask(storage),
            TeardownDiskImagesTask(storage)
        ]
Ejemplo n.º 2
0
    def teardown_with_tasks(self):
        """Returns teardown tasks for this module.

        :return: a list of DBus paths of the installation tasks
        """
        storage = self.storage

        tasks = [
            UnmountFilesystemsTask(storage),
            TeardownDiskImagesTask(storage)
        ]

        paths = [self.publish_task(STORAGE.namespace, task) for task in tasks]

        return paths