perf: 不再需要 tls 类型,any 方式都可以

pull/7006/head
ibuler 2021-10-12 17:30:52 +08:00 committed by Eric_Lee
parent d4bdc74bd8
commit f9ea119928
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
# Generated by Django 3.1.12 on 2021-10-12 08:42
from django.db import migrations
def migrate_platform_win2016(apps, schema_editor):
platform_model = apps.get_model("assets", "Platform")
win2016 = platform_model.objects.filter(name='Windows2016').first()
if not win2016:
print("Error: Not found Windows2016 platform")
return
win2016.meta = {"security": "any"}
win2016.save()
class Migration(migrations.Migration):
dependencies = [
('assets', '0076_delete_assetuser'),
]
operations = [
migrations.RunPython(migrate_platform_win2016)
]