diff options
author | Ava Hahn <a.hahn@f5.com> | 2024-05-06 12:28:40 -0700 |
---|---|---|
committer | avahahn <110854134+avahahn@users.noreply.github.com> | 2024-05-08 13:30:08 -0700 |
commit | cc9eb8e756e84cd3fd59baf5b80efab0ffd5757d (patch) | |
tree | 23b42d96a10774ef949367fc8393d3c106aafc87 /tools/unitctl/unit-client-rs/src/unitd_process.rs | |
parent | 6ad1fa342813f2c9f00813108c3f2eec8824fd6f (diff) | |
download | unit-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/unitd_process.rs')
-rw-r--r-- | tools/unitctl/unit-client-rs/src/unitd_process.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/unitctl/unit-client-rs/src/unitd_process.rs b/tools/unitctl/unit-client-rs/src/unitd_process.rs index 47ffcb5d..3dc0c3af 100644 --- a/tools/unitctl/unit-client-rs/src/unitd_process.rs +++ b/tools/unitctl/unit-client-rs/src/unitd_process.rs @@ -27,6 +27,7 @@ impl Serialize for UnitdProcess { where S: Serializer, { + // 6 = fields to serialize let mut state = serializer.serialize_map(Some(6))?; state.serialize_entry("pid", &self.process_id)?; state.serialize_entry("user", &self.user)?; |