these methods don't need to be class methods

Signed-off-by: Jessica Mack <jmack@redhat.com>
This commit is contained in:
Jessica Mack
2023-01-30 10:38:28 -05:00
committed by Hao Liu
parent cb31973d59
commit 43f4872fec

View File

@@ -26,8 +26,8 @@ class TaskWorker(BaseWorker):
`awx.main.dispatch.publish`. `awx.main.dispatch.publish`.
""" """
@classmethod @staticmethod
def resolve_callable(cls, task): def resolve_callable(task):
""" """
Transform a dotted notation task into an imported, callable function, e.g., Transform a dotted notation task into an imported, callable function, e.g.,
@@ -46,7 +46,8 @@ class TaskWorker(BaseWorker):
return _call return _call
def run_callable(self, body): @staticmethod
def run_callable(body):
""" """
Given some AMQP message, import the correct Python code and run it. Given some AMQP message, import the correct Python code and run it.
""" """