mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 04:40:22 -07: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:
parent
8ba7fd5d61
commit
40ccd1501b
3 changed files with 41 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue