mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
Get Schema: do not show error if one of service not registred
This commit is contained in:
parent
0e8cb4dbd3
commit
d56a2ab4d5
2 changed files with 5 additions and 3 deletions
|
|
@ -1053,6 +1053,8 @@ static void update_instances_list(struct list_head *inst)
|
|||
list_for_each_entry(nptr_dp, &bbf_ctx.list_parameter, list) {
|
||||
add_path_list(nptr_dp->name, inst);
|
||||
}
|
||||
} else {
|
||||
WARNING("Failed to get instances");
|
||||
}
|
||||
|
||||
bbf_cleanup(&bbf_ctx);
|
||||
|
|
|
|||
|
|
@ -1005,11 +1005,11 @@ static int get_ubus_supported_dm(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);
|
||||
|
||||
|
|
@ -1018,7 +1018,7 @@ static int get_ubus_supported_dm(struct dmctx *dmctx, struct dmnode *node)
|
|||
|
||||
char *fault = dmjson_get_value(res_obj, 1, "fault");
|
||||
if (DM_STRLEN(fault))
|
||||
return DM_STRTOUL(fault);
|
||||
continue;
|
||||
|
||||
char *path = dmjson_get_value(res_obj, 1, "path");
|
||||
char *data = dmjson_get_value(res_obj, 1, "data");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue