mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-08 09:38:30 +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 = {}
|
_results = {}
|
||||||
for asset in assets:
|
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] = {
|
_results[asset] = {
|
||||||
'error': _('Asset does not support this secret type: %s') % secret_type,
|
'error': _('Asset does not support this secret type: %s') % secret_type,
|
||||||
'state': 'error',
|
'state': 'error',
|
||||||
|
Loading…
Reference in New Issue
Block a user