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:
parent
b0502a9681
commit
d2aacb4899
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user