You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If your configuration has an implicit array (two objects with the same key), it is not possible to address the second (or third...) object with ucl_find_path
server {
disk {
device = /dev/ad0;
}
disk {
device = /dev/ad1;
}
}
ucl_find_path(obj, 'server.disk');
returns the first disk. You have to know that it is an implicit array (obj->type = UCL_OBJECt, obj->next != 0) and ucl_object_iterate(obj, &it, false) over the object to get to the latter items.
Any ideas?
The text was updated successfully, but these errors were encountered:
If your configuration has an implicit array (two objects with the same key), it is not possible to address the second (or third...) object with ucl_find_path
server {
disk {
device = /dev/ad0;
}
disk {
device = /dev/ad1;
}
}
ucl_find_path(obj, 'server.disk');
returns the first disk. You have to know that it is an implicit array (obj->type = UCL_OBJECt, obj->next != 0) and ucl_object_iterate(obj, &it, false) over the object to get to the latter items.
Any ideas?
The text was updated successfully, but these errors were encountered: