-
Notifications
You must be signed in to change notification settings - Fork 62
Closed
Labels
Sled AgentRelated to the Per-Sled Configuration and ManagementRelated to the Per-Sled Configuration and ManagementUpdate SystemReplacing old bits with newer, cooler bitsReplacing old bits with newer, cooler bitscleanupCode cleanlinessCode cleanliness
Description
omicron/sled-agent/src/updates.rs
Lines 43 to 59 in 6f6aba6
| // ALSO TODO: This is, for the moment, using the endpoint directly | |
| // instead of using the client method to work around issues in | |
| // dropshot/progenitor for getting raw response bodies. | |
| let response = nexus | |
| .client() | |
| .get(format!( | |
| "{}/artifacts/{}/{}/{}", | |
| nexus.baseurl(), | |
| artifact.kind, | |
| artifact.name, | |
| artifact.version | |
| )) | |
| .send() | |
| .await | |
| .map_err(Error::Response)?; | |
| let contents = | |
| response.bytes().await.map_err(|e| Error::Response(e))?; |
Depends on pulling in changes from:
- improve OpenAPI description for Response<Body> endpoints dropshot#295
- Handle byte streams for both success and error responses progenitor#35
(From #717)
Metadata
Metadata
Assignees
Labels
Sled AgentRelated to the Per-Sled Configuration and ManagementRelated to the Per-Sled Configuration and ManagementUpdate SystemReplacing old bits with newer, cooler bitsReplacing old bits with newer, cooler bitscleanupCode cleanlinessCode cleanliness