[node-patches] Change in ovirt-node[master]: utils: Add RPM stuff

fabiand at redhat.com fabiand at redhat.com
Fri Jul 18 15:48:51 UTC 2014


Fabian Deutsch has uploaded a new change for review.

Change subject: utils: Add RPM stuff
......................................................................

utils: Add RPM stuff

Change-Id: I281c0a9d24055e2e1103692dffa80fdf92d20b46
Signed-off-by: Fabian Deutsch <fabiand at redhat.com>
(cherry picked from commit cedb1a5494c9d952e7fb395b45dc8584d4db82ce)
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M src/ovirt/node/utils/system.py
1 file changed, 7 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/42/30442/1

diff --git a/src/ovirt/node/utils/system.py b/src/ovirt/node/utils/system.py
index 53cbd0e..214673c 100644
--- a/src/ovirt/node/utils/system.py
+++ b/src/ovirt/node/utils/system.py
@@ -115,6 +115,13 @@
                in ["rescue", "S", "single", "1"])
 
 
+def node_version():
+    """Return the version of the ovirt-node package
+    This is the package version at runtime
+    """
+    return RpmPackage("ovirt-node").nvr().version
+
+
 def _parse_lscpu(data):
     """Parse the lines of the lscpu output
 


-- 
To view, visit http://gerrit.ovirt.org/30442
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I281c0a9d24055e2e1103692dffa80fdf92d20b46
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at redhat.com>



More information about the node-patches mailing list