mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-05 21:54:22 -07:00
trailing Error
This commit is contained in:
parent
da148f6235
commit
e6b5d52c83
1 changed files with 0 additions and 6 deletions
|
@ -57,8 +57,6 @@ file_digest:
|
|||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
import re
|
||||
|
||||
|
||||
def get_exports(module, output_format, file_path="/etc/exports"):
|
||||
IP_ENTRY_PATTERN = re.compile(r'(\d+\.\d+\.\d+\.\d+)\(([^)]+)\)')
|
||||
try:
|
||||
|
@ -80,7 +78,6 @@ def get_exports(module, output_format, file_path="/etc/exports"):
|
|||
line = line.strip()
|
||||
if not line or line.startswith('#'):
|
||||
continue
|
||||
|
||||
match = pattern.match(line)
|
||||
if not match:
|
||||
continue
|
||||
|
@ -129,9 +126,6 @@ def main():
|
|||
exports_info=result['exports_info'],
|
||||
file_digest=result['file_digest']
|
||||
)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
__all__ = ['get_exports']
|
Loading…
Add table
Add a link
Reference in a new issue