mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
fix ruff case SIM110 (#11215)
* fix ruff case SIM110 * Update plugins/module_utils/xenserver.py Co-authored-by: Felix Fontein <felix@fontein.de> * add changelog frag --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
@@ -188,10 +188,7 @@ def test__new_fallback_urls(mocker):
|
||||
|
||||
def isInList(l, i):
|
||||
print(f"checking if {i} in {l}")
|
||||
for item in l:
|
||||
if item == i:
|
||||
return True
|
||||
return False
|
||||
return any(item == i for item in l) # TODO: check if return `i in l` works
|
||||
|
||||
|
||||
@patch("ansible_collections.community.general.plugins.modules.jenkins_plugin.fetch_url")
|
||||
|
||||
Reference in New Issue
Block a user