fix: 修改资产账号name为非必填

pull/6247/head^2
Bai 2021-06-08 11:29:47 +08:00 committed by Jiangjie.Bai
parent af92271a52
commit 8fbea2f702
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ class AssetUserReadSerializer(AssetUserWriteSerializer):
fields_fk = ['asset', 'hostname', 'ip']
fields = fields_small + fields_fk
extra_kwargs = {
'name': {'required': False},
'username': {'required': True},
'password': {'write_only': True},
'private_key': {'write_only': True},