mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-08 09:38:30 +00:00
parent
f7ae23f7d9
commit
0be3cb3c27
@ -45,6 +45,9 @@ class SecretTypeValidator:
|
|||||||
|
|
||||||
def __call__(self, attrs, serializer):
|
def __call__(self, attrs, serializer):
|
||||||
secret_types = set()
|
secret_types = set()
|
||||||
|
if serializer.instance:
|
||||||
|
asset = serializer.instance.asset
|
||||||
|
else:
|
||||||
asset = attrs['asset']
|
asset = attrs['asset']
|
||||||
secret_type = attrs['secret_type']
|
secret_type = attrs['secret_type']
|
||||||
platform_protocols_dict = {
|
platform_protocols_dict = {
|
||||||
|
Loading…
Reference in New Issue
Block a user