Skip to content

Commit 1c9becb

Browse files
committed
Adjust cf metrics exporter jar pattern
1 parent 100fb1d commit 1c9becb

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/java/frameworks/cf_metrics_exporter.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func (f *CfMetricsExporterFramework) Finalize() error {
118118

119119
func (f *CfMetricsExporterFramework) constructJarPath(agentDir string) error {
120120
// Find the installed JAR
121-
jarPattern := filepath.Join(agentDir, "cf-metrics-exporter-*.jar")
121+
jarPattern := filepath.Join(agentDir, "cf-metrics-exporter*.jar")
122122
matches, err := filepath.Glob(jarPattern)
123123
if err != nil {
124124
return fmt.Errorf("failed to search for CF Metrics Exported jar: %w", err)
@@ -129,4 +129,3 @@ func (f *CfMetricsExporterFramework) constructJarPath(agentDir string) error {
129129
f.jarPath = matches[0]
130130
return nil
131131
}
132-

0 commit comments

Comments
 (0)