mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
python: Remove unused parameter ‘samdb’
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
d9a665a0e4
commit
eb727331a3
@ -139,7 +139,7 @@ class UpgradeProvisionWithLdbTestCase(TestCaseInTempDir):
|
||||
self.names.policyid)
|
||||
shutil.rmtree(dir)
|
||||
self.assertFalse(os.path.isdir(dir))
|
||||
update_gpo(self.paths, self.ldbs.sam, self.names)
|
||||
update_gpo(self.paths, self.names)
|
||||
self.assertTrue(os.path.isdir(dir))
|
||||
|
||||
def test_update_gpo_acl(self):
|
||||
@ -150,7 +150,7 @@ class UpgradeProvisionWithLdbTestCase(TestCaseInTempDir):
|
||||
os.mkdir(os.path.join(path, self.names.dnsdomain))
|
||||
os.mkdir(os.path.join(os.path.join(path, self.names.dnsdomain),
|
||||
"Policies"))
|
||||
update_gpo(self.paths, self.ldbs.sam, self.names)
|
||||
update_gpo(self.paths, self.names)
|
||||
shutil.rmtree(path)
|
||||
self.paths.sysvol = save
|
||||
|
||||
|
@ -451,7 +451,7 @@ def updateOEMInfo(samdb, rootdn):
|
||||
samdb.modify(delta)
|
||||
|
||||
|
||||
def update_gpo(paths, samdb, names):
|
||||
def update_gpo(paths, names):
|
||||
"""Create missing GPO file object if needed
|
||||
"""
|
||||
dir = getpolicypath(paths.sysvol, names.dnsdomain, names.policyid)
|
||||
|
@ -1819,7 +1819,7 @@ if __name__ == '__main__':
|
||||
|
||||
if opts.full:
|
||||
try:
|
||||
update_gpo(paths, ldbs.sam, names)
|
||||
update_gpo(paths, names)
|
||||
except ProvisioningError as e:
|
||||
message(ERROR, "The policy for domain controller is missing. "
|
||||
"You should restart upgradeprovision with --full")
|
||||
|
Loading…
Reference in New Issue
Block a user