mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
Stop browsing the rest of micro-services when calling Get Name RPC for a parameter and receive a successful response
This commit is contained in:
parent
fe8799d0b0
commit
09d0adde8e
1 changed files with 7 additions and 2 deletions
|
|
@ -1832,7 +1832,11 @@ static int mobj_get_name_in_param(DMOBJECT_ARGS)
|
|||
static int mparam_get_name_in_param(DMPARAM_ARGS)
|
||||
{
|
||||
if (node->is_ubus_service) {
|
||||
return get_ubus_name(dmctx, node);
|
||||
int err = get_ubus_name(dmctx, node);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
dmctx->stop = true;
|
||||
} else {
|
||||
char *refparam;
|
||||
char *perm = leaf->permission->val;
|
||||
|
|
@ -1864,8 +1868,9 @@ static int mparam_get_name_in_param(DMPARAM_ARGS)
|
|||
|
||||
add_list_parameter(dmctx, refparam, perm, DMT_TYPE[leaf->type], NULL);
|
||||
dmctx->findparam = (dmctx->iswildcard) ? 1 : 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int mobj_get_name_in_obj(DMOBJECT_ARGS)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue