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

Policy set retrieval separated to ease code reading

This commit is contained in:
2019-12-03 06:01:48 +04:00
parent 44ac1515e7
commit 170f3eac7f
2 changed files with 10 additions and 1 deletions

View File

@@ -71,6 +71,14 @@ class samba_backend(applier_backend):
self.username = username
self.sid = sid
def retrieve_and_store(self):
'''
Retrieve settings and strore it in a database
'''
# FIXME: Please note that get_policy_set return value has no
# meaning since we're using setting storage, so code must
# be simplified
# Get policies for machine at first.
self.machine_policy_set = self.get_policy_set(util.get_machine_name(), None, True)