[PR #10459/ee783066 backport][stable-9] Fix ansible-core 2.19 deprecations (#10469)

Fix ansible-core 2.19 deprecations (#10459)

Do not return warnings.

(cherry picked from commit ee7830667a)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot]
2025-07-27 12:13:01 +02:00
committed by GitHub
parent cfc06284c6
commit 7daa21210f
6 changed files with 21 additions and 28 deletions

View File

@@ -101,7 +101,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']:
@@ -137,7 +136,6 @@ def sysupgrade_run(module):
rc=rc,
stderr=err,
stdout=out,
warnings=warnings
)