Add migration to prefill rh username and password for subscriptions

This commit is contained in:
Christian M. Adams
2020-10-23 15:41:00 -04:00
committed by Ryan Petrello
parent e50c2c2867
commit dd459e23e2
2 changed files with 32 additions and 3 deletions

View File

@@ -4,17 +4,23 @@ import logging
from django.db import migrations
from awx.conf.migrations import _subscriptions as subscriptions
from awx.conf.migrations._subscriptions import clear_old_license, prefill_rh_credentials
logger = logging.getLogger('awx.conf.migrations')
def _noop(apps, schema_editor):
pass
class Migration(migrations.Migration):
dependencies = [
('conf', '0007_v380_rename_more_settings'),
]
operations = [
migrations.RunPython(subscriptions.clear_old_license),
migrations.RunPython(clear_old_license, _noop),
migrations.RunPython(prefill_rh_credentials, _noop)
]