mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
Fix the set method for parameters exposed over a micro-service and use object reference as values
This commit is contained in:
parent
6e40cbdba1
commit
afb64324cc
1 changed files with 7 additions and 2 deletions
|
|
@ -313,8 +313,13 @@ int dm_validate_allowed_objects(struct dmctx *ctx, struct dm_reference *referenc
|
|||
|
||||
if (match(reference->path, *objects, 0, NULL)) {
|
||||
|
||||
if (adm_entry_object_exists(ctx, reference->path))
|
||||
return 0;
|
||||
if (is_micro_service) {
|
||||
if (DM_STRLEN(reference->value))
|
||||
return 0;
|
||||
} else {
|
||||
if (adm_entry_object_exists(ctx, reference->path))
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue