diff --git a/plugins/modules/nfs_exports_info.py b/plugins/modules/nfs_exports_info.py index f9ded05a41..32b1e8b9eb 100644 --- a/plugins/modules/nfs_exports_info.py +++ b/plugins/modules/nfs_exports_info.py @@ -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()