Skip to content
Snippets Groups Projects
Commit 784aedfb authored by clemarch's avatar clemarch Committed by Antoine Millet
Browse files

Retreive HKVM version from /etc/hkvm_version

Instead of /etc/isimage. Choice as been made to not enforce version
here as there are no needs to do so.
parent ddaf585d
No related branches found
No related tags found
No related merge requests found
......@@ -213,9 +213,8 @@ def plugins(handler):
# HKVM related tags
def hkvmver():
"""HKVM version."""
fields = dict(x.split(': ', 1) for x in open('/etc/isimage').read().split('\n') if x.strip())
return int(fields['image version'])
"""HKVM version and patch level."""
return open('/etc/hkvm_version').read().strip()
def hkvmsetup():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment