1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-18 09:51:41 +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:
patchback[bot] 2025-11-25 21:59:06 +01:00 committed by GitHub
parent e741e22ec4
commit 8930d03c7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 34 additions and 72 deletions

View file

@ -682,10 +682,9 @@ class LXDContainerManagement:
return self.config[key] != old_configs
def _needs_to_apply_instance_configs(self):
for param in set(CONFIG_PARAMS) - set(CONFIG_CREATION_PARAMS):
if self._needs_to_change_instance_config(param):
return True
return False
return any(
self._needs_to_change_instance_config(param) for param in set(CONFIG_PARAMS) - set(CONFIG_CREATION_PARAMS)
)
def _apply_instance_configs(self):
old_metadata = copy.deepcopy(self.old_instance_json).get("metadata", None) or {}