mirror of
https://github.com/ansible/awx.git
synced 2026-02-24 14:36:00 -03:30
Merge pull request #3091 from chrismeyersfsu/fix-#2847
Always create fact cleanup job
This commit is contained in:
@@ -4,9 +4,6 @@ from __future__ import unicode_literals
|
|||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
from django.utils.timezone import now
|
from django.utils.timezone import now
|
||||||
|
|
||||||
from awx.api.license import feature_enabled
|
|
||||||
|
|
||||||
|
|
||||||
def create_system_job_templates(apps, schema_editor):
|
def create_system_job_templates(apps, schema_editor):
|
||||||
'''
|
'''
|
||||||
Create default system job templates if not present. Create default schedules
|
Create default system job templates if not present. Create default schedules
|
||||||
@@ -80,7 +77,7 @@ def create_system_job_templates(apps, schema_editor):
|
|||||||
polymorphic_ctype=sjt_ct,
|
polymorphic_ctype=sjt_ct,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
if created and feature_enabled('system_tracking', bypass_database=True):
|
if created:
|
||||||
sched = Schedule(
|
sched = Schedule(
|
||||||
name='Cleanup Fact Schedule',
|
name='Cleanup Fact Schedule',
|
||||||
rrule='DTSTART:%s RRULE:FREQ=MONTHLY;INTERVAL=1;BYMONTHDAY=1' % now_str,
|
rrule='DTSTART:%s RRULE:FREQ=MONTHLY;INTERVAL=1;BYMONTHDAY=1' % now_str,
|
||||||
|
|||||||
Reference in New Issue
Block a user