diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-03-24 21:21:00 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-03-24 21:21:00 +0200 |
commit | ecd8eef97006686b8686803b0eaf0a37b87eff08 (patch) | |
tree | 1bd1266858ca6d4e78e999aa5c0f8119131ff41b /src/util.rs | |
parent | cc7f874e03a6050c47b592fe5ed7b3704eeedfcc (diff) | |
download | vmadm-ecd8eef97006686b8686803b0eaf0a37b87eff08.tar.gz |
refactor: when starting, stopping do all VMs at once
Diffstat (limited to 'src/util.rs')
-rw-r--r-- | src/util.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.rs b/src/util.rs index 9933f03..f3e104b 100644 --- a/src/util.rs +++ b/src/util.rs @@ -1,11 +1,13 @@ //! Utilities. +use log::debug; use std::net::TcpStream; const SSH_PORT: i32 = 22; // Wait for a virtual machine to have opened its SSH port. pub fn wait_for_ssh(name: &str) { + debug!("waiting for {} to respond to SSH", name); let addr = format!("{}:{}", name, SSH_PORT); loop { if TcpStream::connect(&addr).is_ok() { |