Skip to content

Commit 41c1eb7

Browse files
committed
Fix 'no_create_home ' for users. Credit: #76
1 parent 300dabb commit 41c1eb7

File tree

1 file changed

+1
-1
lines changed
  • cloudbaseinit/plugins/common/userdataplugins/cloudconfigplugins

1 file changed

+1
-1
lines changed

cloudbaseinit/plugins/common/userdataplugins/cloudconfigplugins/users.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def _create_user(self, item, osutils):
115115

116116
public_keys = item.get('ssh_authorized_keys', [])
117117
should_create_home = (public_keys or
118-
not item.get('no_create_home ', False))
118+
not item.get('no_create_home', False))
119119
if user_disabled and should_create_home:
120120
raise exception.CloudbaseInitException(
121121
"The user is required to be enabled if public_keys "

0 commit comments

Comments
 (0)