mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-31 06:22:56 +00:00
fix: filter custom assets in secret type check
This commit is contained in:
parent
f9e6fc98fb
commit
8a8a7f9947
@ -385,7 +385,7 @@ class AssetAccountBulkSerializer(
|
||||
|
||||
_results = {}
|
||||
for asset in assets:
|
||||
if asset not in secret_type_supports:
|
||||
if asset not in secret_type_supports and asset.category != Category.CUSTOM:
|
||||
_results[asset] = {
|
||||
'error': _('Asset does not support this secret type: %s') % secret_type,
|
||||
'state': 'error',
|
||||
|
Loading…
Reference in New Issue
Block a user