mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Address consider-using-in
Replace multiple comparisons with 'in' operation. See: https://pagure.io/freeipa/issue/7758 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
7bdc9badfd
commit
496d1756c9
@ -215,7 +215,7 @@ class UI_driver:
|
||||
)
|
||||
else:
|
||||
try:
|
||||
if browser == 'chrome' or browser == 'chromium':
|
||||
if browser in {'chrome', 'chromium'}:
|
||||
driver = webdriver.Chrome(chrome_options=options)
|
||||
elif browser == 'ie':
|
||||
driver = webdriver.Ie()
|
||||
|
@ -160,7 +160,7 @@ class StageUserTracker(KerberosAliasMixin, Tracker):
|
||||
elif key == u'ipasshpubkey':
|
||||
self.attrs[u'sshpubkeyfp'] = [sshpubkeyfp]
|
||||
self.attrs[key] = [self.kwargs[key]]
|
||||
elif key == u'random' or key == u'userpassword':
|
||||
elif key in {u'random', u'userpassword'}:
|
||||
self.attrs[u'krbextradata'] = [Fuzzy(type=bytes)]
|
||||
self.attrs[u'krbpasswordexpiration'] = [
|
||||
fuzzy_dergeneralizedtime]
|
||||
|
Loading…
Reference in New Issue
Block a user