From 3c565347a3d4d58a445c76f268b7228e6aa23174 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Sun, 29 Aug 2021 18:59:12 +0200 Subject: [PATCH] stages/kickstart: quote ssh-key Surround the ssh key by quotes since it might contain spaces. --- stages/org.osbuild.kickstart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stages/org.osbuild.kickstart b/stages/org.osbuild.kickstart index e8c0944f8..d6468a836 100755 --- a/stages/org.osbuild.kickstart +++ b/stages/org.osbuild.kickstart @@ -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