mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
[PR #6289/6e0bc4f4 backport][stable-6] Remove --app by flatpak check if already installed (ansible-collectio… (#6372)
Remove --app by flatpak check if already installed (ansible-collectio… (#6289)
* Remove --app by flatpak check if already installed (ansible-collections#6265)
* Add Changelogfragment
* Fix syntax
* Update changelogs/fragments/6289-bugfix-flatpak-check-if-already-installed.yml
Co-authored-by: Felix Fontein <felix@fontein.de>
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 6e0bc4f45c
)
Co-authored-by: Svenum <43136984+Svenum@users.noreply.github.com>
This commit is contained in:
parent
acfe464a31
commit
b10cf1e357
2 changed files with 3 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- flatpak - fixes idempotency detection issues. In some cases the module could fail to properly detect already existing Flatpaks because of a parameter witch only checks the installed apps (https://github.com/ansible-collections/community.general/pull/6289).
|
|
@ -215,7 +215,7 @@ def uninstall_flat(module, binary, names, method):
|
||||||
|
|
||||||
def flatpak_exists(module, binary, names, method):
|
def flatpak_exists(module, binary, names, method):
|
||||||
"""Check if the flatpaks are installed."""
|
"""Check if the flatpaks are installed."""
|
||||||
command = [binary, "list", "--{0}".format(method), "--app"]
|
command = [binary, "list", "--{0}".format(method)]
|
||||||
output = _flatpak_command(module, False, command)
|
output = _flatpak_command(module, False, command)
|
||||||
installed = []
|
installed = []
|
||||||
not_installed = []
|
not_installed = []
|
||||||
|
|
Loading…
Reference in a new issue