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:
parent
9a3e26ad98
commit
1c678f5c07
5 changed files with 12 additions and 10 deletions
|
|
@ -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 = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue