Add newline to Nova migration secret

Previously, the Nova migration secret was stored without an EOL on
its last line, causing key validation errors in SSH.

Change-Id: I7f077351d985ef3c20f53494715834e226e55f13
Closes-Bug: #1904394
This commit is contained in:
Javier Pena 2020-11-17 12:40:58 +01:00 committed by Javier Peña
parent 2086672ae4
commit e3c80e1bc6
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ def create_ssh_keys(config, messages):
config['NOVA_MIGRATION_KEY_TYPE'] = 'ssh-rsa'
config['NOVA_MIGRATION_KEY_PUBLIC'] = public.split()[1]
config['NOVA_MIGRATION_KEY_SECRET'] = secret
config['NOVA_MIGRATION_KEY_SECRET'] = secret + '\n'
def gather_host_keys(config, messages):