modinfo BUGFIX creating list without key
@@ -1336,11 +1336,8 @@ sr_modinfo_module_srmon_module(sr_conn_ctx_t *conn, sr_mod_t *shm_mod, struct ly
oper_sub = (sr_mod_oper_sub_t *)(conn->ext_shm.addr + shm_mod->oper_subs);
for (i = 0; i < shm_mod->oper_sub_count; ++i) {
- /* operational-sub */
- SR_CHECK_LY_RET(lyd_new_list(sr_subs, NULL, "operational-sub", 0, &sr_sub), ly_ctx, err_info);
-
- /* xpath */
- SR_CHECK_LY_RET(lyd_new_term(sr_sub, NULL, "xpath", conn->ext_shm.addr + oper_sub[i].xpath, 0, NULL),
+ /* operational-sub with xpath */
+ SR_CHECK_LY_RET(lyd_new_list(sr_subs, NULL, "operational-sub", 0, &sr_sub, conn->ext_shm.addr + oper_sub[i].xpath),
ly_ctx, err_info);
/* cid */
