Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(api/ldap): test_connection use data in db, should use the data from form #448

Merged

Conversation

wklken
Copy link
Collaborator

@wklken wklken commented May 17, 2022

close #447


syncer_cls(instance.id).fetcher.client.initialize(**serializer.validated_data)

原因: __post_init__优先于initialize执行

FIXME: 执行test_connection的时候, 实际上在这里就执行__post_init__了, 使用的是db中存储的, 而不是用户表单传入的! 异常在这里就被抛出了

@wklken wklken merged commit a95035f into TencentBlueKing:development May 19, 2022
@wklken wklken deleted the fix_test_connection_wrong_config branch May 19, 2022 02:43
@wklken wklken mentioned this pull request Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants