diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-03-01 04:46:40 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-03-01 04:46:51 +0100 |
commit | 31a718aa27bcf3f56347a109f6d0bb553814c052 (patch) | |
tree | 3c4d5dba41a7811a52c0ff889bfeaf9786644abb /source4/scripting/python/samba/upgradehelpers.py | |
parent | 1ef50d5de4e1341703a35200e4c90ec4fba0ce89 (diff) | |
download | samba-31a718aa27bcf3f56347a109f6d0bb553814c052.tar.gz samba-31a718aa27bcf3f56347a109f6d0bb553814c052.tar.xz samba-31a718aa27bcf3f56347a109f6d0bb553814c052.zip |
General cleanups of python code, hinted by pyflakes.
Diffstat (limited to 'source4/scripting/python/samba/upgradehelpers.py')
-rwxr-xr-x | source4/scripting/python/samba/upgradehelpers.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/upgradehelpers.py b/source4/scripting/python/samba/upgradehelpers.py index 69c29b96a12..31af490b6c6 100755 --- a/source4/scripting/python/samba/upgradehelpers.py +++ b/source4/scripting/python/samba/upgradehelpers.py @@ -144,7 +144,7 @@ def find_provision_key_parameters(param, credentials, session_info, paths, smbco # dc policy guid attrs8 = ["cn","displayName"] res8 = samdb.search(expression="(displayName=Default Domain Controllers Policy)",base="CN=Policies,CN=System,"+basedn, \ - scope=SCOPE_ONELEVEL, attrs=attrs7) + scope=SCOPE_ONELEVEL, attrs=attrs8) if len(res8) == 1: names.policyid_dc = str(res8[0]["cn"]).replace("{","").replace("}","") else: @@ -168,7 +168,6 @@ def newprovision(names,setup_dir,creds,session,smbconf,provdir,messagefunc): :param messagefunc: A function for displaying the message of the provision""" if os.path.isdir(provdir): shutil.rmtree(provdir) - logstd=os.path.join(provdir,"log.std") os.chdir(os.path.join(setup_dir,"..")) os.mkdir(provdir) messagefunc("Provision stored in %s"%provdir) |