Blanks Errors

This commit is contained in:
Yousefnezhad 2025-06-15 09:03:30 +03:30
commit bccf55ba98

View file

@ -71,11 +71,9 @@ import hashlib
def get_exports(module, output_format, file_path="/etc/exports"):
IP_ENTRY_PATTERN = re.compile(r'(\d+\.\d+\.\d+\.\d+)\(([^)]+)\)')
MAIN_LINE_PATTERN = re.compile(r'\s*(\S+)\s+(.+)')
file_digests = {}
hash_algorithms = ['sha256', 'sha1', 'md5']
@ -105,7 +103,6 @@ def get_exports(module, output_format, file_path="/etc/exports"):
exports = {}
output_lines = []
if file_content_bytes:
output_lines = file_content_bytes.decode('utf-8', errors='ignore').splitlines()
@ -147,9 +144,6 @@ def get_exports(module, output_format, file_path="/etc/exports"):
except Exception as e:
module.fail_json(msg="Error while processing exports: {}".format(e))
def main():
module = AnsibleModule(
argument_spec=dict(