summaryrefslogtreecommitdiff
path: root/src/spec.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-03-13 14:51:19 +0200
committerLars Wirzenius <liw@liw.fi>2021-03-14 09:11:07 +0200
commitb8119579a246727805a03c5a8e60fb44109410f6 (patch)
treeb4e0698ae9f50b8757530f2332cb1c40872d4a5c /src/spec.rs
parentd4cba41b5674e6ca1cbd5669aeb42d5f7d62e8bd (diff)
downloadvmadm-b8119579a246727805a03c5a8e60fb44109410f6.tar.gz
fix: VMs can be restarted
Previously, the temporary file for the cloud-init configuration ISO was left attached to the VM. This meant the VM couldn't be turned off and back on again: the temporary no longer existed. Now we detach the ISO file after the VM has booted. As a side effect, vmadm has gained start and shutdown subcommands, so that the fix can be tested.
Diffstat (limited to 'src/spec.rs')
-rw-r--r--src/spec.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/spec.rs b/src/spec.rs
index fcf6eab..4bd0bb9 100644
--- a/src/spec.rs
+++ b/src/spec.rs
@@ -269,7 +269,7 @@ impl Specification {
let spec = Specification {
name: name.to_string(),
- ssh_keys: ssh_keys,
+ ssh_keys,
rsa_host_key: input.rsa_host_key.clone(),
rsa_host_cert: input.rsa_host_cert.clone(),
dsa_host_key: input.dsa_host_key.clone(),
@@ -284,7 +284,7 @@ impl Specification {
memory_mib: input.memory_mib(config, name)?,
cpus: input.cpus(config, name)?,
generate_host_certificate: gen_cert,
- ca_key: ca_key,
+ ca_key,
};
debug!("specification as with defaults applied: {:#?}", spec);