mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-12-26 07:29:04 +01:00
url.JoinPath requires go 1.19. For now stay compatible with go 1.18
This commit is contained in:
parent
eaf8b1941d
commit
f7b39d027b
@ -5,7 +5,6 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strconv"
|
||||
"sync"
|
||||
"time"
|
||||
@ -352,7 +351,8 @@ func (r *RedfishReceiver) Start() {
|
||||
|
||||
timestamp := time.Now()
|
||||
|
||||
URL, _ := url.JoinPath(processor.ODataID, "ProcessorMetrics")
|
||||
// Golang 1.19: URL, _ := url.JoinPath(processor.ODataID, "ProcessorMetrics")
|
||||
URL := processor.ODataID + "/ProcessorMetrics"
|
||||
resp, err := processor.Client.Get(URL)
|
||||
if err != nil {
|
||||
// Skip non existing URLs
|
||||
|
Loading…
Reference in New Issue
Block a user