Skip to content

Commit

Permalink
bugfix: 编辑proxy密码报错系统错误 (fixed TencentBlueKing#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzhw8 committed Dec 15, 2021
1 parent 318e2e2 commit 1c5a12a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/node_man/serializers/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ def validate(self, attrs):
if field_need_encrypt not in attrs:
continue
attrs[field_need_encrypt] = tools.HostTools.decrypt_with_friendly_exc_handle(
rsa_util=rsa_util, encrypt_message=attrs[fields_need_encrypt], raise_exec=ValidationError
rsa_util=rsa_util, encrypt_message=attrs[field_need_encrypt], raise_exec=ValidationError
)
return attrs


class RemoveSerializer(serializers.Serializer):
Expand Down

0 comments on commit 1c5a12a

Please sign in to comment.