Merge "cloudconfig: fix type in key name no_create_home"

This commit is contained in:
Zuul 2022-12-07 15:26:14 +00:00 committed by Gerrit Code Review
commit 576db310c2
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ class UsersPlugin(base.BaseCloudConfigPlugin):
public_keys = item.get('ssh_authorized_keys', [])
should_create_home = (public_keys or
not item.get('no_create_home ', False))
not item.get('no_create_home', False))
if user_disabled and should_create_home:
raise exception.CloudbaseInitException(
"The user is required to be enabled if public_keys "