From 1af3b715857f1ae76fd4382b9ab2fbf45fa4e19c Mon Sep 17 00:00:00 2001 From: "johannes.kaufmann" Date: Mon, 2 Dec 2019 15:58:01 +0100 Subject: [PATCH] Move plugin manager call to end --- tljh/user.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tljh/user.py b/tljh/user.py index 6ced6bd..d4daf1f 100644 --- a/tljh/user.py +++ b/tljh/user.py @@ -25,8 +25,6 @@ def ensure_user(username): # User doesn't exist, time to create! pass - pm = get_plugin_manager() - subprocess.check_call([ 'useradd', '--create-home', @@ -39,6 +37,7 @@ def ensure_user(username): expanduser('~{username}'.format(username=username)) ]) + pm = get_plugin_manager() pm.hook.tljh_new_user_create(username=username)