summaryrefslogtreecommitdiffhomepage
path: root/tools/unitctl/unit-client-rs/src/unit_client.rs
diff options
context:
space:
mode:
authorAva Hahn <a.hahn@f5.com>2024-05-06 12:28:40 -0700
committeravahahn <110854134+avahahn@users.noreply.github.com>2024-05-08 13:30:08 -0700
commitcc9eb8e756e84cd3fd59baf5b80efab0ffd5757d (patch)
tree23b42d96a10774ef949367fc8393d3c106aafc87 /tools/unitctl/unit-client-rs/src/unit_client.rs
parent6ad1fa342813f2c9f00813108c3f2eec8824fd6f (diff)
downloadunit-cc9eb8e756e84cd3fd59baf5b80efab0ffd5757d.tar.gz
unit-cc9eb8e756e84cd3fd59baf5b80efab0ffd5757d.tar.bz2
tools/unitctl: enable passing IP addresses to the 'instances new' command
* use path seperator constant from rust std package * pass a ControlSocket into deploy_new_container instead of a string * parse and validate a ControlSocket from argument to instances new * conditionally mount control socket only if its a unix socket * use create_image in a way that actually pulls nonpresent images * possibly override container command if TCP socket passed in * handle more weird error cases * add a ton of validation cases in the CLI command handler * add a nice little progress bar :) Signed-off-by: Ava Hahn <a.hahn@f5.com>
Diffstat (limited to 'tools/unitctl/unit-client-rs/src/unit_client.rs')
-rw-r--r--tools/unitctl/unit-client-rs/src/unit_client.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/unitctl/unit-client-rs/src/unit_client.rs b/tools/unitctl/unit-client-rs/src/unit_client.rs
index f76004cd..b8c73ec0 100644
--- a/tools/unitctl/unit-client-rs/src/unit_client.rs
+++ b/tools/unitctl/unit-client-rs/src/unit_client.rs
@@ -250,7 +250,7 @@ impl UnitClient {
Err(Box::new(UnitClientError::new(
hyper_error,
self.control_socket.to_string(),
- "".to_string(),
+ "/listeners".to_string(),
)))
} else {
Err(Box::new(UnitClientError::OpenAPIError { source: err }))
@@ -268,7 +268,7 @@ impl UnitClient {
Err(Box::new(UnitClientError::new(
hyper_error,
self.control_socket.to_string(),
- "".to_string(),
+ "/status".to_string(),
)))
} else {
Err(Box::new(UnitClientError::OpenAPIError { source: err }))