mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-26 21:33:12 +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:
@@ -205,11 +205,7 @@ def _check_nfs_device(module, nfs_host, device):
|
||||
module.fail_json(msg=f"Failed to run showmount. Error message: {err}")
|
||||
else:
|
||||
showmount_data = showmount_out.splitlines()
|
||||
for line in showmount_data:
|
||||
if line.split(":")[1] == device:
|
||||
return True
|
||||
|
||||
return False
|
||||
return any(line.split(":")[1] == device for line in showmount_data)
|
||||
|
||||
|
||||
def _validate_vg(module, vg):
|
||||
|
||||
Reference in New Issue
Block a user