1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 10:50:35 +03:00

Work with --nodomain option

This commit is contained in:
Игорь Чудов 2020-01-21 20:11:57 +04:00
parent b0502a9681
commit d2aacb4899
Signed by untrusted user: nir
GPG Key ID: 0F3883600CAE7AAC

View File

@ -95,9 +95,13 @@ class gpoa_controller:
'''
Function to start update of settings storage
'''
dc = self.__args.dc
if self.__args.nodomain:
dc = None
if not self.__args.noupdate:
if is_root():
back = backend_factory(self.__args.dc, self.username)
back = backend_factory(dc, self.username)
if back:
back.retrieve_and_store()