mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 04:40:22 -07:00
Fix anomalous backslashes and enable pylint test.
This commit is contained in:
parent
9735a70059
commit
c6bb6c72cc
30 changed files with 76 additions and 77 deletions
|
@ -179,9 +179,9 @@ def get_ntp_peer(module):
|
|||
ntp = response
|
||||
if ntp:
|
||||
ntp_regex = (
|
||||
".*ntp\s(server\s(?P<address>\S+)|peer\s(?P<peer_address>\S+))"
|
||||
"\s*((?P<prefer>prefer)\s*)?(use-vrf\s(?P<vrf_name>\S+)\s*)?"
|
||||
"(key\s(?P<key_id>\d+))?.*"
|
||||
r".*ntp\s(server\s(?P<address>\S+)|peer\s(?P<peer_address>\S+))"
|
||||
r"\s*((?P<prefer>prefer)\s*)?(use-vrf\s(?P<vrf_name>\S+)\s*)?"
|
||||
r"(key\s(?P<key_id>\d+))?.*"
|
||||
)
|
||||
|
||||
split_ntp = ntp.splitlines()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue