]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
selftest: fix invalid loop variables uid and gid
authorRob van der Linde <rob@catalyst.net.nz>
Thu, 23 Feb 2023 02:46:43 +0000 (15:46 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 23 Feb 2023 22:32:32 +0000 (22:32 +0000)
Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
source3/script/tests/test_wbinfo_sids2xids_int.py

index 759edbccd97adcf8269d417cff7f43dcaa5ab744..0eb5f316b9a5634e9bfb35f9816feea8d3867a0e 100755 (executable)
@@ -27,9 +27,9 @@ def run(cmd):
 def flush_cache(sids=[], uids=[], gids=[]):
     for sid in sids:
         os.system(netcmd + (" cache del IDMAP/SID2XID/%s" % (sid)))
-    for uids in uids:
+    for uid in uids:
         os.system(netcmd + (" cache del IDMAP/UID2SID/%s" % (uid)))
-    for gids in gids:
+    for gid in gids:
         os.system(netcmd + (" cache del IDMAP/GID2SID/%s" % (gid)))