PEP8: fix E125: continuation line with same indent as next logical line
authorJoe Guo <joeg@catalyst.net.nz>
Mon, 30 Jul 2018 06:14:45 +0000 (18:14 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Fri, 24 Aug 2018 05:49:26 +0000 (07:49 +0200)
Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/netcmd/ou.py
python/samba/provision/__init__.py
python/samba/provision/sambadns.py
python/samba/upgradehelpers.py

index ce9a1656506f49cf9af9fabb0ffc35e7c5e20aac..c5fe6ce75d8fa55572d2427121eacf71b000cc4e 100644 (file)
@@ -304,7 +304,7 @@ class cmd_list(Command):
     }
 
     def run(self, sambaopts=None, credopts=None, versionopts=None, H=None,
-        full_dn=False):
+            full_dn=False):
         lp = sambaopts.get_loadparm()
         creds = credopts.get_credentials(lp, fallback_machine=True)
         samdb = SamDB(url=H, session_info=system_session(),
index 56e2c5f6c2811c66688ede8cce40b3e9e9f2be80..7eaffc91cf8006ca5be916a77381e5cc67e2306b 100644 (file)
@@ -280,7 +280,7 @@ def find_provision_key_parameters(samdb, secretsdb, idmapdb, paths, smbconf,
     names.domainsid = ndr_unpack( security.dom_sid, res6[0]["objectSid"][0])
     names.forestsid = ndr_unpack( security.dom_sid, res6[0]["objectSid"][0])
     if res6[0].get("msDS-Behavior-Version") is None or \
-        int(res6[0]["msDS-Behavior-Version"][0]) < DS_DOMAIN_FUNCTION_2000:
+            int(res6[0]["msDS-Behavior-Version"][0]) < DS_DOMAIN_FUNCTION_2000:
         names.domainlevel = DS_DOMAIN_FUNCTION_2000
     else:
         names.domainlevel = int(res6[0]["msDS-Behavior-Version"][0])
@@ -1792,7 +1792,7 @@ def check_gpos_acl(sysvol, dnsdomain, domainsid, domaindn, samdb, lp,
 
 
 def checksysvolacl(samdb, netlogon, sysvol, domainsid, dnsdomain, domaindn,
-    lp):
+        lp):
     """Set the ACL for the sysvol share and the subfolders
 
     :param samdb: An LDB object on the SAM db
index 99dff9c9ba1b37f293a12a55f6453ff1d07b323a..b7a47ed849de75567000ed42c037c8766cbf252f 100644 (file)
@@ -980,7 +980,7 @@ def create_named_conf(paths, realm, dnsdomain, dns_backend, logger):
 
 
 def create_named_txt(path, realm, dnsdomain, dnsname, binddns_dir,
-    keytab_name):
+        keytab_name):
     """Write out a file containing zone statements suitable for inclusion in a
     named.conf file (including GSS-TSIG configuration).
 
index 7c0dbac2d56e85fa33f14805ad5f57c45108a6ad..fd57ae3ec3cafe40421fe08b95a37ab01111f6ed 100644 (file)
@@ -530,7 +530,7 @@ def delta_update_basesamdb(refsampath, sampath, creds, session, lp, message):
             delta = sam.msg_diff(empty, refentry)
             message(CHANGE, "Adding %s to sam db" % str(refentry.dn))
             if str(refentry.dn) == "@PROVISION" and\
-                delta.get(samba.provision.LAST_PROVISION_USN_ATTRIBUTE):
+                    delta.get(samba.provision.LAST_PROVISION_USN_ATTRIBUTE):
                 delta.remove(samba.provision.LAST_PROVISION_USN_ATTRIBUTE)
             delta.dn = refentry.dn
             sam.add(delta)
@@ -539,7 +539,7 @@ def delta_update_basesamdb(refsampath, sampath, creds, session, lp, message):
             if str(refentry.dn) == "@ATTRIBUTES":
                 deltaattr = sam.msg_diff(refentry, entry[0])
             if str(refentry.dn) == "@PROVISION" and\
-                delta.get(samba.provision.LAST_PROVISION_USN_ATTRIBUTE):
+                    delta.get(samba.provision.LAST_PROVISION_USN_ATTRIBUTE):
                 delta.remove(samba.provision.LAST_PROVISION_USN_ATTRIBUTE)
             if len(delta.items()) > 1:
                 delta.dn = refentry.dn