mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +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:
@@ -45,11 +45,7 @@ def xml_equal(x, y):
|
||||
if len(x_children) != len(y_children):
|
||||
return False
|
||||
|
||||
for x, y in zip(x_children, y_children):
|
||||
if not xml_equal(x, y):
|
||||
return False
|
||||
|
||||
return True
|
||||
return all(xml_equal(x, y) for x, y in zip(x_children, y_children))
|
||||
|
||||
|
||||
def assert_xml_equal(x, y):
|
||||
|
||||
Reference in New Issue
Block a user