mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Fix anomalous backslashes and enable pylint test.
This commit is contained in:
@@ -121,8 +121,8 @@ def get_vtp_config(module):
|
||||
vtp_parsed = {}
|
||||
|
||||
if body:
|
||||
version_regex = '.*VTP version running\s+:\s+(?P<version>\d).*'
|
||||
domain_regex = '.*VTP Domain Name\s+:\s+(?P<domain>\S+).*'
|
||||
version_regex = r'.*VTP version running\s+:\s+(?P<version>\d).*'
|
||||
domain_regex = r'.*VTP Domain Name\s+:\s+(?P<domain>\S+).*'
|
||||
|
||||
try:
|
||||
match_version = re.match(version_regex, body, re.DOTALL)
|
||||
|
||||
Reference in New Issue
Block a user