diff options
author | Joseph Sutton <josephsutton@catalyst.net.nz> | 2023-04-27 10:44:12 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2023-05-05 02:54:31 +0000 |
commit | 3ae3499b70bc602c052815a8ec9cb09d9270ae5e (patch) | |
tree | 2f035b8920d29eb43a29b19057507b376097fcbe /python | |
parent | 4dc9abc777ba923074a840266f944db3789aa3c0 (diff) | |
download | samba-3ae3499b70bc602c052815a8ec9cb09d9270ae5e.tar.gz |
tests/krb5: Create account cache key only if needed
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/tests/krb5/kdc_base_test.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/python/samba/tests/krb5/kdc_base_test.py b/python/samba/tests/krb5/kdc_base_test.py index 74e6dfb406a..229ec7d8143 100644 --- a/python/samba/tests/krb5/kdc_base_test.py +++ b/python/samba/tests/krb5/kdc_base_test.py @@ -1677,9 +1677,8 @@ class KDCBaseTest(RawKerberosTest): **opts } - cache_key = tuple(sorted(account_opts.items())) - if use_cache: + cache_key = tuple(sorted(account_opts.items())) creds = self.account_cache.get(cache_key) if creds is not None: return creds |