aboutsummaryrefslogtreecommitdiffstats
path: root/tools/systeminfo.py
diff options
context:
space:
mode:
authorMartin Klozik <martinx.klozik@intel.com>2017-03-27 10:42:34 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-03-27 10:42:34 +0000
commitb757c8ba94b9d8664808a39d7517a11651cc0188 (patch)
tree8278a4a0aadfcd908d13dfbd36abaa8ace630a84 /tools/systeminfo.py
parent725033715118bc318fdd6aa3745c2c07ca714086 (diff)
parent00ae14186c5292c04766321d02fc7f82668ee066 (diff)
Merge "vpp: Reporting update related to VPP"
Diffstat (limited to 'tools/systeminfo.py')
-rw-r--r--tools/systeminfo.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/systeminfo.py b/tools/systeminfo.py
index d515983d..575dd87e 100644
--- a/tools/systeminfo.py
+++ b/tools/systeminfo.py
@@ -23,6 +23,7 @@ import re
import distro
from conf import settings as S
+from tools.version import Version
def match_line(file_name, pattern):
""" loops through given file and returns first line matching given pattern
@@ -328,7 +329,7 @@ def get_version(app_name):
app_version = 'NA'
app_git_tag = 'NA'
- return {'name' : app_name, 'version' : app_version, 'git_tag' : app_git_tag}
+ return Version(app_name, app_version, app_git_tag)
def get_loopback_version(loopback_app_name):
""" Get version of given guest loopback application and its git tag
@@ -337,5 +338,5 @@ def get_loopback_version(loopback_app_name):
version or git tag are not known or not applicaple, than None is returned for any unknown value
"""
version = get_version("loopback_{}".format(loopback_app_name))
- version['name'] = loopback_app_name
+ version.set_value('name', loopback_app_name)
return version