1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-22 05:09:12 +00:00
This commit is contained in:
Yousefnezhad 2025-06-16 08:11:39 +03:30
parent 8d357942f9
commit ed5e9de244

View file

@ -99,7 +99,7 @@ def get_exports(module, output_format, file_path="/etc/exports"):
except Exception as ex:
module.warn("Error calculating '{}' hash: {}".format(algo, ex))
exports = {}
output_lines = []
if file_content_bytes:
output_lines = file_content_bytes.decode('utf-8', errors='ignore').splitlines()