Get Name: Don't return micro-service error when calling 'Device.' or empty path with next-level is false

This commit is contained in:
Amin Ben Romdhane 2024-04-25 17:37:03 +02:00
parent d5d84ae1da
commit 41d4e915e3

View file

@ -1880,7 +1880,8 @@ static int mobj_get_name(DMOBJECT_ARGS)
static int mparam_get_name(DMPARAM_ARGS)
{
if (node->is_ubus_service) {
return get_ubus_name(dmctx, node);
get_ubus_name(dmctx, node);
return 0;
} else {
char *refparam;
char *perm = leaf->permission->val;