diff options
| author | Dan Engelbrecht <[email protected]> | 2026-04-02 09:58:42 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-04-02 09:58:42 +0200 |
| commit | b5fa9fd16fbaa1ceac95ff3a7f4c8e9f414ee525 (patch) | |
| tree | 87275c9383bea83f7e384a47b668fdea3d65b46f /src/zenutil/cloud | |
| parent | add provision button to hub ui (#915) (diff) | |
| download | zen-b5fa9fd16fbaa1ceac95ff3a7f4c8e9f414ee525.tar.xz zen-b5fa9fd16fbaa1ceac95ff3a7f4c8e9f414ee525.zip | |
s3 and consul fixes (#916)
* fix endpoint for stats/hub in compute/hub.html page
* fix api token call failure for imds (using wrong overload for Put)
* add "localhost" to healt check url in consul when no address is given
* add consul fallback deregister if normal deregister fails
* add consul registration unit test
Diffstat (limited to 'src/zenutil/cloud')
| -rw-r--r-- | src/zenutil/cloud/imdscredentials.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zenutil/cloud/imdscredentials.cpp b/src/zenutil/cloud/imdscredentials.cpp index dde1dc019..5a6cf45d2 100644 --- a/src/zenutil/cloud/imdscredentials.cpp +++ b/src/zenutil/cloud/imdscredentials.cpp @@ -115,7 +115,7 @@ ImdsCredentialProvider::FetchToken() HttpClient::KeyValueMap Headers; Headers->emplace("X-aws-ec2-metadata-token-ttl-seconds", "21600"); - HttpClient::Response Response = m_HttpClient.Put("/latest/api/token", Headers); + HttpClient::Response Response = m_HttpClient.Put("/latest/api/token", IoBuffer{}, Headers); if (!Response.IsSuccess()) { ZEN_WARN("IMDS token request failed: {}", Response.ErrorMessage("PUT /latest/api/token")); |