mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 11:00:03 -03:30
Always create fact cleanup job
This commit is contained in:
parent
46998cdcfe
commit
eb89cf98cc
@ -4,9 +4,6 @@ from __future__ import unicode_literals
|
||||
from django.db import migrations, models
|
||||
from django.utils.timezone import now
|
||||
|
||||
from awx.api.license import feature_enabled
|
||||
|
||||
|
||||
def create_system_job_templates(apps, schema_editor):
|
||||
'''
|
||||
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,
|
||||
),
|
||||
)
|
||||
if created and feature_enabled('system_tracking', bypass_database=True):
|
||||
if created:
|
||||
sched = Schedule(
|
||||
name='Cleanup Fact Schedule',
|
||||
rrule='DTSTART:%s RRULE:FREQ=MONTHLY;INTERVAL=1;BYMONTHDAY=1' % now_str,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user