Skip to content

Commit

Permalink
Fix image introspect for PythonPackages (#1585)
Browse files Browse the repository at this point in the history
  • Loading branch information
shatakshiiii authored Jul 27, 2023
1 parent f9455b1 commit 7868044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansible_navigator/data/image_introspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def commands(self) -> list[Command]:
pre = Command(id_="pip_freeze", command="python3 -m pip freeze", parse=self.parse_freeze)
run_command(pre)
pre.parse(pre)
pkgs = " ".join(pkg for pkg in pre.details[0])
pkgs = " ".join(pkg for pkg in pre.details[0]) if pre.details else ""
return [
Command(id_="python_packages", command=f"python3 -m pip show {pkgs}", parse=self.parse),
]
Expand Down

0 comments on commit 7868044

Please sign in to comment.