Skip to content

Commit 991b90d

Browse files
committed
Fix test failure
1 parent 233396e commit 991b90d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/opentelemetry/contrib/generator/core/ResourceModelGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ private void mapChildResources() {
160160
}
161161
}
162162
//Map any remaining child resource to the last parent resource
163-
if (nextChildIndex < childrenSize-1) {
163+
if (nextChildIndex < childrenSize) {
164164
log.debug("Remaining children of type '" + childType + "' mapped to the last parent of type '" + parentType +
165165
"' at index " + (parentType.getCountWithRuntimeModifications()-1));
166166
setParentToChildren(resourceModel.get(parentType.getName()).get(parentType.getCountWithRuntimeModifications()-1), childType,

0 commit comments

Comments
 (0)