From: Zack Cerza Date: Thu, 11 Jul 2024 16:06:32 +0000 (-0600) Subject: Task.__init__: ctx param is mandatory X-Git-Tag: 1.2.0~17^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=b939f3e4187734a137d357ee3093216b654ebd21;p=teuthology.git Task.__init__: ctx param is mandatory This reflects reality and also fixes some linter errors. Signed-off-by: Zack Cerza --- diff --git a/teuthology/task/__init__.py b/teuthology/task/__init__.py index eb1d04c8b8..98330a7bf6 100644 --- a/teuthology/task/__init__.py +++ b/teuthology/task/__init__.py @@ -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