resolves test error for PR59550 (#59901)

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
pull/57668/head
Sumit Jaiswal 5 years ago committed by GitHub
parent adfbd04b3a
commit b2db38bbc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -211,7 +211,8 @@ class Cliconf(CliconfBase):
for item in model_search_strs: for item in model_search_strs:
match = re.search(item, data, re.M) match = re.search(item, data, re.M)
if match: if match:
device_info['network_os_model'] = match.group(1) version = match.group(1).split(' ')
device_info['network_os_model'] = version[0]
break break
match = re.search(r'^(.+) uptime', data, re.M) match = re.search(r'^(.+) uptime', data, re.M)

Loading…
Cancel
Save