mirror of https://github.com/jumpserver/jumpserver
fix: 修复migrations文件错误 (#11116)
Co-authored-by: fangfang.dong <fangfang.dong@fit2cloud.com>pull/11119/head
parent
e339a56042
commit
38cee8eaa4
|
@ -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…
Reference in New Issue