diff options
author | Rob van der Linde <rob@catalyst.net.nz> | 2023-02-23 15:54:21 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2023-02-23 22:32:33 +0000 |
commit | e7c87b1d9bd10280bff69f1acaf292364b79d496 (patch) | |
tree | b9f3106d5dbca82941bf19733d56bf005bf84ad9 /source3/script | |
parent | c9535526f08141fc5853f5a198bc76f0184e66fe (diff) | |
download | samba-e7c87b1d9bd10280bff69f1acaf292364b79d496.tar.gz |
selftest: source3: fix mutable default arguments
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>
Diffstat (limited to 'source3/script')
-rwxr-xr-x | source3/script/tests/test_wbinfo_sids2xids_int.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/script/tests/test_wbinfo_sids2xids_int.py b/source3/script/tests/test_wbinfo_sids2xids_int.py index 0eb5f316b9a..4f2715c0ec0 100755 --- a/source3/script/tests/test_wbinfo_sids2xids_int.py +++ b/source3/script/tests/test_wbinfo_sids2xids_int.py @@ -24,7 +24,14 @@ def run(cmd): return get_string(output) -def flush_cache(sids=[], uids=[], gids=[]): +def flush_cache(sids=None, uids=None, gids=None): + if sids is None: + sids = [] + if uids is None: + uids = [] + if gids is None: + gids = [] + for sid in sids: os.system(netcmd + (" cache del IDMAP/SID2XID/%s" % (sid))) for uid in uids: |