def teardown_with_tasks(self): """Returns teardown tasks for this module. :return: a list installation tasks """ storage = self.storage return [ UnmountFilesystemsTask(storage), TeardownDiskImagesTask(storage) ]
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