mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-07 06:34:23 -07:00
Blank Error
This commit is contained in:
parent
4004e07cd9
commit
10e12a55d7
1 changed files with 2 additions and 2 deletions
|
@ -59,7 +59,7 @@ from ansible.module_utils.basic import AnsibleModule
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
|
||||||
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+)\(([^)]+)\)')
|
||||||
try:
|
try:
|
||||||
exports_file_digest = module.digest_from_file(file_path, 'sha1')
|
exports_file_digest = module.digest_from_file(file_path, 'sha1')
|
||||||
|
@ -130,4 +130,4 @@ def main():
|
||||||
)
|
)
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
__all__ = ['get_exports']
|
__all__ = ['get_exports']
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue