1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-20 22:50:33 +03:00

Run plugins before anything else

This commit is contained in:
Игорь Чудов 2020-01-22 15:32:33 +04:00
parent 8daa3c644c
commit 8b24e8912e
Signed by untrusted user: nir
GPG Key ID: 0F3883600CAE7AAC

View File

@ -87,9 +87,9 @@ class gpoa_controller:
'''
GPOA controller entry point
'''
self.start_plugins()
self.start_backend()
self.start_frontend()
self.start_plugins()
def start_backend(self):
'''
@ -109,8 +109,13 @@ class gpoa_controller:
'''
Function to start appliers
'''
target = self.target
if self.__args.nodomain:
target = 'Computer'
try:
appl = frontend_manager(self.username, self.target)
appl = frontend_manager(self.username, target)
appl.apply_parameters()
except Exception as exc:
logging.error(slogm('Error occured while running applier: {}'.format(exc)))