mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-09 01:44:03 -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
|
@ -161,8 +161,8 @@ def get_ntp_trusted_key(module):
|
|||
def get_ntp_auth_key(key_id, module):
|
||||
authentication_key = {}
|
||||
command = 'show run | inc ntp.authentication-key.{0}'.format(key_id)
|
||||
auth_regex = (".*ntp\sauthentication-key\s(?P<key_id>\d+)\s"
|
||||
"md5\s(?P<md5string>\S+).*")
|
||||
auth_regex = (r".*ntp\sauthentication-key\s(?P<key_id>\d+)\s"
|
||||
r"md5\s(?P<md5string>\S+).*")
|
||||
|
||||
body = execute_show_command(command, module)[0]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue