From 3669c28d1e7f82993f3c96f220a4475559c7e613 Mon Sep 17 00:00:00 2001 From: Johannes Tax Date: Thu, 30 May 2024 09:57:37 +0200 Subject: [PATCH] Update detectors/azure/vm/vm.go Co-authored-by: David Ashpole --- detectors/azure/vm/vm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/detectors/azure/vm/vm.go b/detectors/azure/vm/vm.go index addb40d3f09..8b7f94d89da 100644 --- a/detectors/azure/vm/vm.go +++ b/detectors/azure/vm/vm.go @@ -115,9 +115,9 @@ func (detector *resourceDetector) Detect(ctx context.Context) (*resource.Resourc } func (detector *resourceDetector) getJSONMetadata() ([]byte, error) { - PTransport := &http.Transport{Proxy: nil} + pTransport := &http.Transport{Proxy: nil} - client := http.Client{Transport: PTransport} + client := http.Client{Transport: pTransport} req, err := http.NewRequest("GET", detector.endpoint, nil) if err != nil {