func findVIDPIDIndex(buildProperties properties.Map, vid, pid string) (int, error) { for key, value := range buildProperties.SubTree(constants.BUILD_PROPERTIES_VID) { if !strings.Contains(key, ".") { if vid == strings.ToLower(value) && pid == strings.ToLower(buildProperties[constants.BUILD_PROPERTIES_PID+"."+key]) { return strconv.Atoi(key) } } } return -1, nil }