source4/scripting/bin: Remove unnecessary global declarations
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 5 May 2022 09:23:10 +0000 (21:23 +1200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 10 May 2022 05:19:34 +0000 (05:19 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
source4/scripting/bin/renamedc
source4/scripting/bin/samba_upgradeprovision

index 906188100393021671ec206a964163ebd4c72c74..e5e8a2c16c7598843ef9e87b9e85f8e5095393ff 100755 (executable)
@@ -59,7 +59,6 @@ creds.set_kerberos_state(DONT_USE_KERBEROS)
 
 
 if __name__ == '__main__':
-    global defSDmodified
     defSDmodified = False
    # 1) First get files paths
     paths = get_paths(param, smbconf=smbconf)
index c918462083d2e8e89d84833bd01b4b12fa114bc8..3d072bc64fefb5f78b02ac77e5bb8a0c3c174016 100755 (executable)
@@ -1571,7 +1571,6 @@ def sync_calculated_attributes(samdb, names):
 
 
 if __name__ == '__main__':
-    global defSDmodified
     defSDmodified = False
 
     # From here start the big steps of the program