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:
Tobias Waldekranz
2023-06-01 15:16:39 +02:00
parent a9c5fccd47
commit 092db20a80
+1 -1
View File
@@ -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;