mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-31 13:03:02 +02:00
confd: Avoid duplicate nodes in fetched config data
It is not clear why, but the former XPATH will return a tree with many duplicate nodes in it, while the latter will not.
This commit is contained in:
@@ -500,7 +500,7 @@ static int ifchange(sr_session_ctx_t *session, uint32_t sub_id, const char *modu
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
err = sr_get_data(session, "/interfaces/interface//.", 0, 0, 0, &cfg);
|
||||
err = sr_get_data(session, "/interfaces/interface", 0, 0, 0, &cfg);
|
||||
if (err)
|
||||
goto err_abandon;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user