mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
apt: fix KeyError for deb=file (#3816)
Fix KeyError: 'prepared' while installing dependencies using deb=<file>.deb This error shows up when --diff was not passed by and the deb files has dependencies not yet installed. Closes #3752.
This commit is contained in:
@@ -535,7 +535,8 @@ def install_deb(m, debs, cache, force, install_recommends, allow_unauthenticated
|
||||
stdout = out
|
||||
if "diff" in retvals:
|
||||
diff = retvals["diff"]
|
||||
diff["prepared"] += '\n\n' + out
|
||||
if 'prepared' in diff:
|
||||
diff['prepared'] += '\n\n' + out
|
||||
else:
|
||||
diff = out
|
||||
if "stderr" in retvals:
|
||||
|
||||
Reference in New Issue
Block a user