1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-26 13:42:49 +00:00

fix ruff case UP030 (#11189)

* fix ruff case UP030

* add changelog frag

* formatting

* suggestion from review
This commit is contained in:
Alexei Znamensky 2025-11-23 20:37:41 +13:00 committed by GitHub
parent 9a3e26ad98
commit 1c678f5c07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 12 additions and 10 deletions

View file

@ -338,11 +338,8 @@ class Snap(StateModuleHelper):
process_ = process_many
if "warning: no snap found" in check_error:
self.do_raise(
"Snaps not found: {0}.".format(
[x.split()[-1] for x in out.split("\n") if x.startswith("warning: no snap found")]
)
)
snaps_not_found = [x.split()[-1] for x in out.split("\n") if x.startswith("warning: no snap found")]
self.do_raise(f"Snaps not found: {snaps_not_found}.")
return process_(rc, out, err)
names = []