Skip to content

Commit

Permalink
ping Kerberos Vault if attached (was no longer working)
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricve committed Feb 3, 2023
1 parent 43d12ee commit 926f9ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions machinery/src/cloud/Cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 926f9ea

Please sign in to comment.