Commit 8993b061 authored by Łukasz Nowak's avatar Łukasz Nowak

kvm: Fix python3 compatibility

Thanks to recent increased test coverage python3 compatibility issue was
spotted, and can be fixed.
parent 310956fb
......@@ -55,7 +55,7 @@ md5sum = a8cf453d20f01c707f02c4b4014580d8
[template-kvm-run]
filename = template/template-kvm-run.in
md5sum = 395ee373ccda3382d257fde1ff4222b0
md5sum = 6c100eec00de5e53f64b075dd69a9865
[template-kvm-controller]
filename = template/kvm-controller-run.in
......
......@@ -130,7 +130,7 @@ def getMapStorageList(disk_storage_dict, external_disk_number):
# ID are writen in one line: data1 data3 data2 ...
content = mf.readline()
for id in content.split(' '):
if disk_storage_dict.has_key(id):
if id in disk_storage_dict:
id_list.append(id)
else:
# Mean that this disk path has been removed (disk unmounted)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment