fix: 修复migrations文件错误 (#11116)

Co-authored-by: fangfang.dong <fangfang.dong@fit2cloud.com>
pull/11119/head
fit2bot 1 year ago committed by GitHub
parent e339a56042
commit 38cee8eaa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -9,7 +9,7 @@ def migrate_platforms_sftp_protocol(apps, schema_editor):
ssh_protocols = platform_protocol_cls.objects \ ssh_protocols = platform_protocol_cls.objects \
.filter(name='ssh', setting__sftp_enabled=True) \ .filter(name='ssh', setting__sftp_enabled=True) \
.exclude(name__in=('Gateway', 'RemoteAppHost')) \ .exclude(name__in=('Gateway', 'RemoteAppHost')) \
.filter(type='linux') .filter(platform__type='linux')
platforms_has_sftp = platform_cls.objects.filter(protocols__name='sftp') platforms_has_sftp = platform_cls.objects.filter(protocols__name='sftp')
new_protocols = [] new_protocols = []

Loading…
Cancel
Save