Replaced mox with mock in test_loguserdata
Also fixed a bug in loguserdata for an incorrect tuple instantiation Change-Id: Ic7bcf018b771505e3ef6c747e0624f929463eb5b
This commit is contained in:
@@ -42,7 +42,7 @@ def chk_ci_version():
|
||||
raise Exception()
|
||||
# data[1] has such format: 'cloud-init 0.7.5\n', need to parse version
|
||||
v = re.split(' |\n', data[1])[1].split('.')
|
||||
return tuple(v) >= tuple('0', '6', '0')
|
||||
return tuple(v) >= tuple(['0', '6', '0'])
|
||||
|
||||
|
||||
def init_logging():
|
||||
|
||||
Reference in New Issue
Block a user