]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Task.__init__: ctx param is mandatory
authorZack Cerza <zack@redhat.com>
Thu, 11 Jul 2024 16:06:32 +0000 (10:06 -0600)
committerZack Cerza <zack@redhat.com>
Thu, 11 Jul 2024 22:48:31 +0000 (16:48 -0600)
This reflects reality and also fixes some linter errors.

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/task/__init__.py

index eb1d04c8b8328769e9333a99f6fdf569a999f230..98330a7bf6be50bb6015cbbccd7a2242c8a28787 100644 (file)
@@ -24,7 +24,7 @@ class Task(object):
                   name = 'mytask.mysubtask'
     """
 
-    def __init__(self, ctx=None, config=None):
+    def __init__(self, ctx, config=None):
         if not hasattr(self, 'name'):
             self.name = self.__class__.__name__.lower()
         self.log = log