Skip to content

Commit ad89483

Browse files
authored
fix info_splunk_index null value issue (#220)
1 parent 9d233b2 commit ad89483

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.circleci/config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ workflows:
8282
filters:
8383
branches:
8484
only:
85-
- INGEST-15507-nozzle-v2-update
8685
- develop
8786
- master
8887
- tile-builder:

events/events.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,10 @@ func (e *Event) AnnotateWithAppData(appCache cache.Cache) {
165165
e.Fields["cf_org_name"] = cf_org_name
166166
}
167167

168-
e.Fields["info_splunk_index"] = app_env["SPLUNK_INDEX"]
168+
if app_env["SPLUNK_INDEX"] != nil {
169+
e.Fields["info_splunk_index"] = app_env["SPLUNK_INDEX"]
170+
}
171+
169172
e.Fields["cf_ignored_app"] = cf_ignored_app
170173
}
171174
}

0 commit comments

Comments
 (0)