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:
parent
d2409fb165
commit
70564ffd89
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue