@ -6,6 +6,27 @@
# Copyright: (c) 2017 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# ATTENTION CONTRIBUTORS!
#
# TL;DR: Run this module's integration tests manually before opening a pull request
#
# Long explanation:
# The integration tests for this module are currently NOT run on the Ansible project's continuous
# delivery pipeline. So please: When you make changes to this module, make sure that you run the
# included integration tests manually for both Python 2 and Python 3:
#
# Python 2:
# ansible-test integration -v --docker fedora28 --docker-privileged --allow-unsupported --python 2.7 flatpak
# Python 3:
# ansible-test integration -v --docker fedora28 --docker-privileged --allow-unsupported --python 3.6 flatpak
#
# Because of external dependencies, the current integration tests are somewhat too slow and brittle
# to be included right now. I have plans to rewrite the integration tests based on a local flatpak
# repository so that they can be included into the normal CI pipeline.
# //oolongbrothers
from __future__ import ( absolute_import , division , print_function )
__metaclass__ = type
@ -145,7 +166,7 @@ def uninstall_flat(module, binary, name, method):
""" Remove an existing flatpak. """
global result
installed_flat_name = _match_installed_flat_name ( module , binary , name , method )
command = " {0} uninstall - -{1} {2} " . format ( binary , method , installed_flat_name )
command = " {0} uninstall - y - -{1} {2} " . format ( binary , method , installed_flat_name )
_flatpak_command ( module , module . check_mode , command )
result [ ' changed ' ] = True