stages/kickstart: quote ssh-key

Surround the ssh key by quotes since it might contain spaces.
This commit is contained in:
Christian Kellner 2021-08-29 18:59:12 +02:00 committed by Tom Gundersen
parent b430bd8682
commit 3c565347a3

View file

@ -182,7 +182,7 @@ def make_users(users: Dict) -> List[str]:
key = opts.get("key")
if key:
res.append(f"sshkey --username {name} {key}")
res.append(f'sshkey --username {name} "{key}"')
return res