mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-29 03:30:22 -07:00
Prepare for version 11: pipx/pipx_info (#10137)
* Remove various deprecated module helper things. * pipx/pipx_info: pipx 1.7.0 required from c.g. 11.0.0 onwards * restore chglog frag * add changelog frag * fix chglog --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
13e3aed86d
commit
a249996f91
6 changed files with 61 additions and 63 deletions
|
@ -211,6 +211,7 @@ version:
|
|||
from ansible_collections.community.general.plugins.module_utils.module_helper import StateModuleHelper
|
||||
from ansible_collections.community.general.plugins.module_utils.pipx import pipx_runner, pipx_common_argspec, make_process_dict
|
||||
from ansible_collections.community.general.plugins.module_utils.pkg_req import PackageRequirement
|
||||
from ansible_collections.community.general.plugins.module_utils.version import LooseVersion
|
||||
|
||||
from ansible.module_utils.facts.compat import ansible_facts
|
||||
|
||||
|
@ -293,6 +294,9 @@ class PipX(StateModuleHelper):
|
|||
rc, out, err = ctx.run()
|
||||
self.vars.version = out.strip()
|
||||
|
||||
if LooseVersion(self.vars.version) < LooseVersion("1.7.0"):
|
||||
self.do_raise("The pipx tool must be at least at version 1.7.0")
|
||||
|
||||
def __quit_module__(self):
|
||||
self.vars.application = self._retrieve_installed()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue