summaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-08-03 09:34:08 +0300
committerLars Wirzenius <liw@liw.fi>2021-08-05 10:12:21 +0300
commit37efe8e3d022d21bd2f6af741c8d5ee49da2fff5 (patch)
treeeb301167c07657836ca5b9fdb6e044da8242e976 /src/cmd
parentc15ca42605d760d519721a3e39e1834ac5b1cb15 (diff)
downloadvmadm-37efe8e3d022d21bd2f6af741c8d5ee49da2fff5.tar.gz
feat: if no networks are specified, use default
Also, drop lan, wan from test config, because we can't assume they're available in the environment the tests are run in. Sponsored-by: author
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/new.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/new.rs b/src/cmd/new.rs
index 3e89c1d..197b3dc 100644
--- a/src/cmd/new.rs
+++ b/src/cmd/new.rs
@@ -45,7 +45,7 @@ pub fn new(specs: &[Specification]) -> Result<(), NewError> {
info!("creating new VM {}", spec.name);
info!("creating cloud-init config");
- let init = CloudInitConfig::from(&spec)?;
+ let init = CloudInitConfig::from(spec)?;
info!(
"creating VM image {} from {}",