Skip to content

Commit

Permalink
wrapper: print VDSM version when RHV version check fails
Browse files Browse the repository at this point in the history
Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
  • Loading branch information
nyoxi committed Mar 22, 2019
1 parent 0afc7ed commit b704bcf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion wrapper/virt-v2v-wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -1532,7 +1532,11 @@ def check_rhv_version():
res = rpmUtils.miscutils.compareEVR(
(vdsm['epoch'], vdsm['version'], None), # Ignore release number
rpmUtils.miscutils.stringToVersion(VDSM_MIN_VERSION))
return (res >= 0)
if res >= 0:
return True
print('Version of VDSM on the host: {}{}'.format(
'' if vdsm['epoch'] is None else '%s:' % vdsm['epoch'],
vdsm['version']))
print('Minimal required oVirt/RHV version is %s' % VDSM_MIN_RHV)
return False

Expand Down

0 comments on commit b704bcf

Please sign in to comment.