Skip to content

Commit 0016f9b

Browse files
committed
fix lint
1 parent 29ffbae commit 0016f9b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

internal/services/cockpit/cockpit.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,12 @@ func ResourceCockpitRead(ctx context.Context, d *schema.ResourceData, m interfac
174174
if err != nil {
175175
return diag.FromErr(err)
176176
}
177-
alertManagerUrl := ""
177+
alertManagerURL := ""
178178
if alertManager.AlertManagerURL != nil {
179-
alertManagerUrl = *alertManager.AlertManagerURL
179+
alertManagerURL = *alertManager.AlertManagerURL
180180
}
181181

182-
endpoints := flattenCockpitEndpoints(dataSourcesRes.DataSources, grafana.GrafanaURL, alertManagerUrl)
182+
endpoints := flattenCockpitEndpoints(dataSourcesRes.DataSources, grafana.GrafanaURL, alertManagerURL)
183183

184184
_ = d.Set("endpoints", endpoints)
185185
_ = d.Set("push_url", createCockpitPushURL(endpoints))

internal/services/cockpit/cockpit_data_source.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ func dataSourceCockpitRead(ctx context.Context, d *schema.ResourceData, m interf
8383
if err != nil {
8484
return diag.FromErr(err)
8585
}
86-
alertManagerUrl := ""
86+
alertManagerURL := ""
8787
if alertManager.AlertManagerURL != nil {
88-
alertManagerUrl = *alertManager.AlertManagerURL
88+
alertManagerURL = *alertManager.AlertManagerURL
8989
}
9090

91-
endpoints := flattenCockpitEndpoints(dataSourcesRes.DataSources, grafana.GrafanaURL, alertManagerUrl)
91+
endpoints := flattenCockpitEndpoints(dataSourcesRes.DataSources, grafana.GrafanaURL, alertManagerURL)
9292

9393
_ = d.Set("endpoints", endpoints)
9494
_ = d.Set("push_url", createCockpitPushURL(endpoints))

0 commit comments

Comments
 (0)