1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Missing close " (#42985)

Command was missing a close `"`. This was still interpreted properly by the switch, and was not breaking anything, but this is tidier.
This commit is contained in:
Lindsay Hill 2018-07-18 22:54:52 -05:00 committed by Ganesh Nalawade
parent d2409fb165
commit 70564ffd89

View file

@ -49,7 +49,7 @@ class Cliconf(CliconfBase):
if match:
device_info['network_os_model'] = match.group(2)
reply = self.get(b'show running-config | inc "switch-attributes host-name')
reply = self.get(b'show running-config | inc "switch-attributes host-name"')
data = to_text(reply, errors='surrogate_or_strict').strip()
match = re.search(r'switch-attributes host-name (\S+)', data, re.M)