mirror of
https://github.com/ansible/awx.git
synced 2026-03-18 01:17:35 -02:30
Add migration to reset custom pod specs
This commit is contained in:
18
awx/main/migrations/0127_reset_pod_spec_override.py
Normal file
18
awx/main/migrations/0127_reset_pod_spec_override.py
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# Generated by Django 2.2.16 on 2021-02-15 22:02
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
def reset_pod_specs(apps, schema_editor):
|
||||||
|
InstanceGroup = apps.get_model('main', 'InstanceGroup')
|
||||||
|
InstanceGroup.objects.update(pod_spec_override="")
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('main', '0126_executionenvironment_container_options'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.RunPython(reset_pod_specs)
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user