Browse Source

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

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

2
apps/assets/migrations/0121_auto_20230725_1458.py

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

Loading…
Cancel
Save