From d9144223203732b45fcf2ffbd600ea71db0372dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tuncay=20=C3=87OLAK?= Date: Tue, 28 Aug 2018 13:08:51 +0300 Subject: [PATCH] added method to disabled local users after registration ahenk --- src/base/registration/registration.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/base/registration/registration.py b/src/base/registration/registration.py index d18448b..bfe50b6 100644 --- a/src/base/registration/registration.py +++ b/src/base/registration/registration.py @@ -191,6 +191,7 @@ class Registration: result_code, p_out, p_err = self.util.execute(command_users) lines = p_out.split('\n') lines.pop() + self.logger.debug("will be disabled: "+str(lines)) for line in lines: detail = line.split(':') if detail[0] != 'root': @@ -198,4 +199,4 @@ class Registration: self.util.execute(command_logout_user.format(detail[0])) self.logger.debug('{0} has been disabled and killed all processes for {0}'.format(detail[0])) else: - self.logger.info("machine has only root user") + self.logger.info("Ahenk has only root user")