diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/system-login-user.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/system-login-user.py b/src/conf_mode/system-login-user.py index c7ed96dcf..73fda1b05 100755 --- a/src/conf_mode/system-login-user.py +++ b/src/conf_mode/system-login-user.py @@ -203,7 +203,7 @@ def apply(login): os.chmod(key_file, S_IRUSR | S_IWUSR) except Exception as e: - print('Adding user "{}" raised an exception: {}'.format(user['name'], e)) + raise ConfigError('Adding user "{}" raised an exception: {}'.format(user['name'], e)) for user in login['del_users']: try: @@ -211,7 +211,7 @@ def apply(login): # Remove user account but leave home directory to be safe os.system('userdel {}'.format(user)) except Exception as e: - print('Deleting user "{}" raised an exception'.format(user)) + raise ConfigError('Deleting user "{}" raised an exception: {}'.format(user, e)) return None |