mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-22 05:09:12 +00:00
[PR #11215/862fe79a backport][stable-12] fix ruff case SIM110 (#11217)
fix ruff case SIM110 (#11215)
* fix ruff case SIM110
* Update plugins/module_utils/xenserver.py
* add changelog frag
---------
(cherry picked from commit 862fe79a22)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
e741e22ec4
commit
8930d03c7c
16 changed files with 34 additions and 72 deletions
|
|
@ -150,11 +150,10 @@ def parse_out(string):
|
|||
|
||||
|
||||
def has_changed(string):
|
||||
for no_change in ["Nothing to install or update", "Nothing to install, update or remove"]:
|
||||
if no_change in string:
|
||||
return False
|
||||
|
||||
return True
|
||||
return all(
|
||||
no_change not in string
|
||||
for no_change in ["Nothing to install or update", "Nothing to install, update or remove"]
|
||||
)
|
||||
|
||||
|
||||
def get_available_options(module, command="install"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue