Skip to content

Commit

Permalink
Update gce_metadata_client.rs (#154)
Browse files Browse the repository at this point in the history
String interpolation added a redundant slash after host, which causes gcloud sdk 0.25.0 to generate `http://metadata.google.internal//computeMetadata/v1/....` instead of `http://metadata.google.internal/computeMetadata/v1/....`
  • Loading branch information
i10416 authored Jul 15, 2024
1 parent 107a739 commit 7404550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcloud-sdk/src/token_source/gce/gce_metadata_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ impl GceMetadataClient {
match self.availability {
GceMetadataClientAvailability::Available(ref client, ref metadata_server_host) => {
let url = format!(
"http://{}/{}",
"http://{}{}",
metadata_server_host,
path_and_query.as_str()
);
Expand Down

0 comments on commit 7404550

Please sign in to comment.