From 926f9ea32c6de1c43ebd6d57177680b7ea770872 Mon Sep 17 00:00:00 2001 From: Cedric Verstraeten Date: Fri, 3 Feb 2023 20:25:00 +0100 Subject: [PATCH] ping Kerberos Vault if attached (was no longer working) --- machinery/src/cloud/Cloud.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/machinery/src/cloud/Cloud.go b/machinery/src/cloud/Cloud.go index ef87b66..135ea72 100644 --- a/machinery/src/cloud/Cloud.go +++ b/machinery/src/cloud/Cloud.go @@ -171,7 +171,6 @@ func HandleHeartBeat(configuration *models.Configuration, communication *models. } else if config.Cloud == "kstorage" && config.KStorage != nil && config.KStorage.CloudKey != "" { key = config.KStorage.CloudKey username = config.KStorage.Directory - vaultURI = config.KStorage.URI } // This is the new way ;) @@ -270,8 +269,9 @@ func HandleHeartBeat(configuration *models.Configuration, communication *models. log.Log.Error("HandleHeartBeat: (400) Something went wrong while sending to Kerberos Hub.") } - // If we have a vault connect, we will also send some analytics + // If we have a Kerberos Vault connected, we will also send some analytics // to that service. + vaultURI = config.KStorage.URI if vaultURI != "" { buffy = bytes.NewBuffer(jsonStr) req, _ = http.NewRequest("POST", vaultURI+"/devices/heartbeat", buffy)