From b824edfed71275a418050edc523be9962d604a6b Mon Sep 17 00:00:00 2001 From: edip Date: Thu, 15 Nov 2018 12:49:42 +0300 Subject: [PATCH] bugfix --- src/ahenkd.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ahenkd.py b/src/ahenkd.py index d2ac2ab..5f9971e 100644 --- a/src/ahenkd.py +++ b/src/ahenkd.py @@ -296,15 +296,16 @@ class AhenkDaemon(BaseDaemon): self.logger.info('User disabled value='+ str(user_disabled)) if user_disabled == '0': self.logger.info('local user disabling') - global_scope.get_registration().disable_local_users() + #global_scope.get_registration().disable_local_users() conf_manager.set('MACHINE', 'user_disabled', '1') with open('/etc/ahenk/ahenk.conf', 'w') as configfile: + self.logger.info('oepning config file ') self.conf_manager.write(configfile) - self.logger.info('local user disabled') + user_disabled = conf_manager.get("MACHINE", "user_disabled") - self.logger.info('User disabled value=' + str(user_disabled)) + self.logger.info('User succesfully disabled value=' + str(user_disabled)) else : self.logger.info('users already disabled')