Get Name Method: do not show error if one of service not registred

This commit is contained in:
Amin Ben Romdhane 2023-05-31 11:44:58 +02:00
parent adaa953336
commit cd2efb31e4

View file

@ -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;