Skip to content

Commit

Permalink
tools/unitctl: bump bollard and clarify docker client error
Browse files Browse the repository at this point in the history
Signed-off-by: Ava Hahn <[email protected]>
  • Loading branch information
avahahn committed Sep 24, 2024
1 parent 1c75aab commit ac90254
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 52 deletions.
102 changes: 54 additions & 48 deletions tools/unitctl/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tools/unitctl/unit-client-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ default = ["serde_json/preserve_order"]
[dependencies]
custom_error = "1.9"
hyper = { version = "0.14", features = ["stream"] }
hyper-rustls = { version = "0.25.0", features = ["rustls-native-certs", "webpki-roots"] }
hyper-rustls = { version = "0.25.0", features = ["rustls-native-certs", "webpki-roots", "http2"] }
hyperlocal = "0.8"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
Expand All @@ -27,7 +27,7 @@ which = "5.0"

unit-openapi = { path = "../unit-openapi" }
rustls = "0.23.5"
bollard = "0.16.1"
bollard = "0.17.1"
regex = "1.10.4"
pbr = "1.1.1"

Expand Down
2 changes: 1 addition & 1 deletion tools/unitctl/unit-client-rs/src/unit_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ impl UnitClient {
.unwrap_or_else(|_| HttpsConnectorBuilder::default()
.with_webpki_roots())
.https_or_http()
.enable_http1()
.enable_all_versions()
.wrap_connector(HttpConnector::new()));
Self {
control_socket,
Expand Down
2 changes: 1 addition & 1 deletion tools/unitctl/unit-client-rs/src/unitd_docker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ impl UnitdContainer {
if let Ok(docker) = Docker::connect_with_local_defaults() {
match docker.list_containers::<String>(None).await {
Err(e) => {
eprintln!("{}", e);
eprintln!("Could not read docker instances: {}", e);
vec![]
}
Ok(summary) => {
Expand Down

0 comments on commit ac90254

Please sign in to comment.