Skip to content

Commit

Permalink
Add migration to reset custom pod specs
Browse files Browse the repository at this point in the history
  • Loading branch information
shanemcd committed Mar 3, 2021
1 parent d6b5990 commit 05ef51f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions awx/main/migrations/0127_reset_pod_spec_override.py
Original file line number Diff line number Diff line change
@@ -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)
]

0 comments on commit 05ef51f

Please sign in to comment.