mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00: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:
committed by
Ganesh Nalawade
parent
d2409fb165
commit
70564ffd89
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user