mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07: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:
|
if match:
|
||||||
device_info['network_os_model'] = match.group(2)
|
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()
|
data = to_text(reply, errors='surrogate_or_strict').strip()
|
||||||
|
|
||||||
match = re.search(r'switch-attributes host-name (\S+)', data, re.M)
|
match = re.search(r'switch-attributes host-name (\S+)', data, re.M)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue