Fix ansible-core 2.19 deprecations (#10459)

Do not return warnings.
This commit is contained in:
Felix Fontein
2025-07-27 11:49:27 +02:00
committed by GitHub
parent d288555fd9
commit ee7830667a
6 changed files with 21 additions and 28 deletions

View File

@@ -102,7 +102,6 @@ def sysupgrade_run(module):
sysupgrade_bin = module.get_bin_path('/usr/sbin/sysupgrade', required=True)
cmd = [sysupgrade_bin]
changed = False
warnings = []
# Setup command flags
if module.params['snapshot']:
@@ -138,7 +137,6 @@ def sysupgrade_run(module):
rc=rc,
stderr=err,
stdout=out,
warnings=warnings
)