diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-03-25 07:05:09 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-03-25 07:05:09 +0000 |
commit | 5a1e6aa671908cc8dd73729559c532aab151e92a (patch) | |
tree | dfe9e3bee73d15a88c3ccb494278c0cad6e6cb0e /src/util.rs | |
parent | b379fc201cfc42ccbc1408ec16cffff6ff65c0a7 (diff) | |
parent | 8fdbaed9ec97fbf39612e73c783771c65fe71400 (diff) | |
download | vmadm-5a1e6aa671908cc8dd73729559c532aab151e92a.tar.gz |
Merge branch 'all-at-once' into 'main'
All at once
See merge request larswirzenius/vmadm!27
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() { |