summaryrefslogtreecommitdiff
path: root/src/cloudinit.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-03-01 10:13:15 +0200
committerLars Wirzenius <liw@liw.fi>2021-03-01 12:28:31 +0200
commita4e59f7f6363c2bc62b91298f41b5b645842385e (patch)
tree46659f0fa296fe2128d1a7bcb929008d034f51c1 /src/cloudinit.rs
parent05dbbc46d7b3fad9e7a1b85e10469022e07e0b40 (diff)
downloadvmadm-a4e59f7f6363c2bc62b91298f41b5b645842385e.tar.gz
feat: change how command line interface works
Easier to use now. --config before subcommand was annoying.
Diffstat (limited to 'src/cloudinit.rs')
-rw-r--r--src/cloudinit.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cloudinit.rs b/src/cloudinit.rs
index 2c521fd..6e62cc5 100644
--- a/src/cloudinit.rs
+++ b/src/cloudinit.rs
@@ -147,7 +147,7 @@ struct Userdata {
impl Userdata {
fn from(spec: &Specification) -> Result<Self, CloudInitError> {
Ok(Self {
- ssh_authorized_keys: spec.ssh_keys()?.lines().map(|s| s.to_string()).collect(),
+ ssh_authorized_keys: spec.ssh_keys.clone(),
ssh_keys: Hostkeys::from(spec),
runcmd: vec![
format!("python3 -c {}", quote(SCRIPT)),