mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Fix anomalous backslashes and enable pylint test.
This commit is contained in:
@@ -123,7 +123,7 @@ def map_config_to_obj(module):
|
||||
'show running-config | begin banner %s'
|
||||
% module.params['banner'])
|
||||
if out:
|
||||
output = re.search('\^C(.*)\^C', out, re.S).group(1).strip()
|
||||
output = re.search(r'\^C(.*)\^C', out, re.S).group(1).strip()
|
||||
else:
|
||||
output = None
|
||||
obj = {'banner': module.params['banner'], 'state': 'absent'}
|
||||
|
||||
Reference in New Issue
Block a user