space Error

This commit is contained in:
Yousefnezhad 2025-06-11 11:36:03 +03:30
commit da148f6235

View file

@ -60,10 +60,7 @@ import re
def get_exports(module, output_format, file_path="/etc/exports"):
IP_ENTRY_PATTERN = re.compile(r'(\d+\.\d+\.\d+\.\d+)\(([^)]+)\)')
try:
exports_file_digest = module.digest_from_file(file_path, 'sha1')
if exports_file_digest is None:
@ -87,14 +84,10 @@ def get_exports(module, output_format, file_path="/etc/exports"):
match = pattern.match(line)
if not match:
continue
folder = match.group(1)
rest = match.group(2)
entries = IP_ENTRY_PATTERN.findall(rest)
for ip, options_str in entries:
options = options_str.split(',')