mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
apt: use to_native instead of str for exc (#37595)
This commit is contained in:
committed by
Abhijeet Kasurde
parent
64dfaf9cda
commit
5be9315603
@@ -857,7 +857,7 @@ def get_cache(module):
|
||||
# try again
|
||||
cache = apt.Cache()
|
||||
else:
|
||||
module.fail_json(msg=str(e))
|
||||
module.fail_json(msg=to_native(e))
|
||||
return cache
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user