mirror of
https://github.com/ansible/awx.git
synced 2026-03-05 18:51:06 -03:30
these methods don't need to be class methods
Signed-off-by: Jessica Mack <jmack@redhat.com>
This commit is contained in:
@@ -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.
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user