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 2026-02-10 09:41:28 +03:30
parent 5e67ee853d
commit bd878c3f71

View file

@ -17,7 +17,7 @@ description:
author: author:
- Samaneh Yousefnezhad (@yousefenzhad) - Samaneh Yousefnezhad (@yousefenzhad)
version_added: "12.2cvh.0" version_added: "12.2.0"
extends_documentation_fragment: extends_documentation_fragment:
- community.general.attributes - community.general.attributes
@ -73,7 +73,7 @@ import hashlib
def get_exports(module, output_format, file_path="/etc/exports"): def get_exports(module, output_format, file_path="/etc/exports"):
IP_ENTRY_PATTERN = re.compile(r'(\d+\.\d+\.\d+\.\d+)\(([^)]+)\)') IP_ENTRY_PATTERN = re.compile(r'(\d+\.\d+\.\d+\.\d+)\(([^)]+)\)')
MAIN_LINE_PATTERN = re.compile(r'\s*(\S+)\s+(.+)') MAIN_LINE_PATTERN = re.compile(r'(/\S+)\s+(.+)')
file_digests = {} file_digests = {}
hash_algorithms = ['sha256', 'sha1', 'md5'] hash_algorithms = ['sha256', 'sha1', 'md5']