summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-08-08 09:51:10 +0300
committerLars Wirzenius <liw@liw.fi>2021-08-08 10:02:53 +0300
commit1444e6d5a8353d84744a4203696a7ba52bc6105f (patch)
treebb7694a33df0763d8a63fdc5034ac6569142cba9 /src
parent565a5230ee343d7d0ce247d8e37e50ed660ae2f6 (diff)
downloadvmadm-1444e6d5a8353d84744a4203696a7ba52bc6105f.tar.gz
feat: expand tilde notation in the CA key field in a spec
Sponsored-by: author
Diffstat (limited to 'src')
-rw-r--r--src/spec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spec.rs b/src/spec.rs
index 9f8d3e8..5dc7714 100644
--- a/src/spec.rs
+++ b/src/spec.rs
@@ -284,7 +284,7 @@ impl Specification {
let key_filenames = input.ssh_key_files(config, name)?;
let ssh_keys = ssh_keys(&key_filenames)?;
let ca_key = if let Some(filename) = &input.ca_key {
- Some(filename.clone())
+ Some(expand_tilde(filename))
} else {
config.ca_key.clone()
};