def find_tasks(self, overrides):
        """Find the custom tasks and record the associated image with each task"""
        tasks = self.default_tasks()
        configuration = self.collector.configuration

        for image in list(configuration["images"].keys()):
            path = configuration.path(["images", image, "tasks"], joined="images.{0}.tasks".format(image))
            nxt = configuration.get(path, {})
            tasks.update(nxt)

        if overrides:
            tasks.update(overrides)

        self.tasks = tasks
        return tasks
def find_tasks ( self , overrides ) : tasks = self . default_tasks ( ) configuration = self . collector . configuration for image in list ( configuration [ "images" ] . keys ( ) ) : path = configuration . path ( [ "images" , image , "tasks" ] , joined = "images.{0}.tasks" . format ( image ) ) nxt = configuration . get ( path , { } ) tasks . update ( nxt ) if overrides : tasks . update ( overrides ) self . tasks = tasks return tasks
Find the custom tasks and record the associated image with each task