diff --git a/cloudcontrol/node/host/tags.py b/cloudcontrol/node/host/tags.py index e052f21713b978800a7679dbbf0c91f44e61c54a..91554feabdd3669f76be3a868f057661f5b799e1 100644 --- a/cloudcontrol/node/host/tags.py +++ b/cloudcontrol/node/host/tags.py @@ -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():