mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
4222364bea
commit
832f0293b3
@ -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"
|
||||
},
|
||||
|
||||
@ -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"]
|
||||
),
|
||||
]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user