mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
Get Name Method: do not show error if one of service not registred
This commit is contained in:
parent
adaa953336
commit
cd2efb31e4
1 changed files with 3 additions and 3 deletions
|
|
@ -1298,11 +1298,11 @@ static int get_ubus_name(struct dmctx *dmctx, struct dmnode *node)
|
|||
json_object_put(in_args);
|
||||
|
||||
if (!res)
|
||||
return FAULT_9005;
|
||||
return 0;
|
||||
|
||||
json_object *res_array = dmjson_get_obj(res, 1, "results");
|
||||
if (!res_array)
|
||||
return FAULT_9005;
|
||||
return 0;
|
||||
|
||||
size_t nbre_obj = json_object_array_length(res_array);
|
||||
|
||||
|
|
@ -1316,7 +1316,7 @@ static int get_ubus_name(struct dmctx *dmctx, struct dmnode *node)
|
|||
|
||||
char *fault = dmjson_get_value(res_obj, 1, "fault");
|
||||
if (DM_STRLEN(fault))
|
||||
return DM_STRTOUL(fault);
|
||||
continue;
|
||||
|
||||
dmctx->findparam = 1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue