CLOUDSTACK-8492: Fix dictionary access issue in createChecksum method - common.py

Signed-off-by: Gaurav Aradhye <gaurav.aradhye@clogeny.com>
This closes #272
This commit is contained in:
Gaurav Aradhye 2015-05-21 12:21:35 +05:30
parent 4222364bea
commit 832f0293b3
2 changed files with 4 additions and 4 deletions

View File

@ -936,7 +936,7 @@ test_data = {
"datadiskdevice_1": '/dev/xvdb',
"datadiskdevice_2": '/dev/xvdc', # Data Disk
},
"KVM": {"rootdiskdevice": "/dev/vda",
"kvm": {"rootdiskdevice": "/dev/vda",
"datadiskdevice_1": "/dev/vdb",
"datadiskdevice_2": "/dev/vdc"
},

View File

@ -1438,13 +1438,13 @@ def createChecksum(service=None,
format_volume_to_ext3(
ssh_client,
service["volume_write_path"][
virtual_machine.hypervisor][disk_type]
virtual_machine.hypervisor.lower()][disk_type]
)
cmds = ["fdisk -l",
"mkdir -p %s" % service["data_write_paths"]["mount_dir"],
"mount -t ext3 %s1 %s" % (
service["volume_write_path"][
virtual_machine.hypervisor][disk_type],
virtual_machine.hypervisor.lower()][disk_type],
service["data_write_paths"]["mount_dir"]
),
"mkdir -p %s/%s/%s " % (
@ -1514,7 +1514,7 @@ def compareChecksum(
"mkdir -p %s" % service["data_write_paths"]["mount_dir"],
"mount -t ext3 %s1 %s" % (
service["volume_write_path"][
virt_machine.hypervisor][disk_type],
virt_machine.hypervisor.lower()][disk_type],
service["data_write_paths"]["mount_dir"]
),
]