mirror of
https://github.com/ansible/awx.git
synced 2026-07-04 12:58:02 -02:30
Add migration to prefill rh username and password for subscriptions
This commit is contained in:
committed by
Ryan Petrello
parent
e50c2c2867
commit
dd459e23e2
@@ -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)
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user