resolves test error for PR59550 (#59901)

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
This commit is contained in:
Sumit Jaiswal 2019-08-01 13:34:14 +05:30 committed by GitHub
parent adfbd04b3a
commit b2db38bbc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)