Skip to content

Commit 471924a

Browse files
committed
wrapper: add wrapper version
Mostly for logging purposes. Should be bumped from time to time.
1 parent f26508e commit 471924a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

files/virt-v2v-wrapper.py

+4
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
import subprocess
3636
xrange = range
3737

38+
# Wrapper version
39+
VERSION = 1
40+
3841
LOG_LEVEL = logging.DEBUG
3942
STATE_DIR = '/tmp'
4043
VDSM_LOG_DIR = '/var/log/vdsm/import'
@@ -402,6 +405,7 @@ def write_password(password, password_files):
402405
level=LOG_LEVEL,
403406
filename=wrapper_log,
404407
format='%(asctime)s:%(levelname)s: %(message)s (%(module)s:%(lineno)d)')
408+
logging.info('Wrapper version %d', VERSION)
405409

406410
if VDSM:
407411
make_vdsm()

0 commit comments

Comments
 (0)