mirror of
https://github.com/ansible/awx.git
synced 2026-08-03 19:40:00 -02:30
Refactored tasks.py to a package
--- Added 3 new sub-package : awx.main.tasks.system , awx.main.tasks.jobs , awx.main.tasks.receptor --- Modified the functional tests and unit tests accordingly
This commit is contained in:
@@ -583,7 +583,7 @@ class Job(UnifiedJob, JobOptions, SurveyJobMixin, JobNotificationMixin, TaskMana
|
||||
|
||||
@classmethod
|
||||
def _get_task_class(cls):
|
||||
from awx.main.tasks import RunJob
|
||||
from awx.main.tasks.jobs import RunJob
|
||||
|
||||
return RunJob
|
||||
|
||||
@@ -1213,7 +1213,7 @@ class SystemJob(UnifiedJob, SystemJobOptions, JobNotificationMixin):
|
||||
|
||||
@classmethod
|
||||
def _get_task_class(cls):
|
||||
from awx.main.tasks import RunSystemJob
|
||||
from awx.main.tasks.jobs import RunSystemJob
|
||||
|
||||
return RunSystemJob
|
||||
|
||||
|
||||
Reference in New Issue
Block a user