fix: trailing spaces

This commit is contained in:
2023-02-22 15:23:38 +01:00
parent f069dae3ee
commit 50ba6c9934

View File

@@ -288,6 +288,7 @@ impl From<&Certificate> for CertInfo {
.map(|arg| format!("-O {arg}")) .map(|arg| format!("-O {arg}"))
.collect::<Vec<_>>() .collect::<Vec<_>>()
.join(" "); .join(" ");
let opts = opts.trim();
let renew_command = format!( let renew_command = format!(
"ssh-keygen -s ./ca_key {host_key} -I {} -n {} -V {validity_days}d {opts}", "ssh-keygen -s ./ca_key {host_key} -I {} -n {} -V {validity_days}d {opts}",
cert.key_id(), cert.key_id(),