mirror of https://github.com/jumpserver/jumpserver
fix: filter custom assets in secret type check
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