From b1433de9e22fbc3ca5bb83276f4d69f26696a292 Mon Sep 17 00:00:00 2001 From: Kim Hagen Date: Wed, 9 Jun 2021 14:43:58 -0500 Subject: Add descrition for why the the ssh_keys variable is parsed. --- cloudinit/config/cc_vyos.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cloudinit/config') diff --git a/cloudinit/config/cc_vyos.py b/cloudinit/config/cc_vyos.py index e1516f1b..65037e3b 100644 --- a/cloudinit/config/cc_vyos.py +++ b/cloudinit/config/cc_vyos.py @@ -514,6 +514,8 @@ def handle(name, cfg, cloud, log, _args): # configure system logins # Prepare SSH public keys for default user, to be sure that global keys applied to the default account (if it exist) + # If the ssh key is left emty on an OVA deploy the OVF datastore passes an empty string which generates an invalid key error. + # Set the ssh_keys variable from the metadata_v1['public_ssh_keys'] checked for empty strings. ssh_keys = [key for key in metadata_v1['public_ssh_keys'] if key ] # append SSH keys from cloud-config ssh_keys.extend(cfg.get('ssh_authorized_keys', [])) -- cgit v1.2.3