diff --git a/plugins/modules/nfs_exports_info.py b/plugins/modules/nfs_exports_info.py index ff7f27e9c4..7d7bd15e02 100644 --- a/plugins/modules/nfs_exports_info.py +++ b/plugins/modules/nfs_exports_info.py @@ -17,7 +17,7 @@ description: author: - Samaneh Yousefnezhad (@yousefenzhad) -version_added: "12.2cvh.0" +version_added: "12.2.0" extends_documentation_fragment: - community.general.attributes @@ -73,7 +73,7 @@ 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+(.+)') + MAIN_LINE_PATTERN = re.compile(r'(/\S+)\s+(.+)') file_digests = {} hash_algorithms = ['sha256', 'sha1', 'md5']