mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
pipx - fixed bug in state=inject (#3611)
* pipx - fixed bug in state=inject * added changelog fragment * copy/paste error in the integration test * replaced injected package with simpler one * testing force_lang = None * disable UTF-8 emojis in pipx output * better way to achieve the same outcome * Adjsuted the changelog fragment
This commit is contained in:
@@ -176,6 +176,9 @@ class PipX(CmdStateModuleHelper):
|
||||
_list=dict(fmt=('list', '--include-injected', '--json'), style=ArgFormat.BOOLEAN),
|
||||
)
|
||||
check_rc = True
|
||||
run_command_fixed_options = dict(
|
||||
environ_update={'USE_EMOJI': '0'}
|
||||
)
|
||||
|
||||
def _retrieve_installed(self):
|
||||
def process_list(rc, out, err):
|
||||
@@ -188,7 +191,7 @@ class PipX(CmdStateModuleHelper):
|
||||
results[venv_name] = {
|
||||
'version': venv['metadata']['main_package']['package_version'],
|
||||
'injected': dict(
|
||||
(k, v['package_version']) for k, v in venv['metadata']['injected_packages']
|
||||
(k, v['package_version']) for k, v in venv['metadata']['injected_packages'].items()
|
||||
),
|
||||
}
|
||||
return results
|
||||
|
||||
Reference in New Issue
Block a user