1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

selftest: fix invalid loop variables uid and gid

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>
This commit is contained in:
Rob van der Linde 2023-02-23 15:46:43 +13:00 committed by Andrew Bartlett
parent 3687ab318a
commit 8a7a779df5

View File

@ -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)))