Skip to content
This repository was archived by the owner on Apr 7, 2022. It is now read-only.

Commit f90649b

Browse files
committed
Update template upload for rhevm, name database disk
1 parent af563c9 commit f90649b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cfme/utils/template/rhevm.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,10 @@ def add_disk_to_vm(self):
7878
return
7979
rhevm_specs = cfme_data.template_upload.template_upload_rhevm
8080
disk_kwargs = dict(storage_domain=self.provider_data.template_upload.storage_domain,
81-
size=rhevm_specs.disk_size,
82-
interface=rhevm_specs.disk_interface,
83-
format=rhevm_specs.disk_format)
81+
size=rhevm_specs.get('disk_size', 5000000000),
82+
interface=rhevm_specs.get('disk_interface', 'virtio'),
83+
format=rhevm_specs.get('disk_format', 'cow'),
84+
name=rhevm_specs.get('disk_name'))
8485
temp_vm.add_disk(**disk_kwargs)
8586
# check, if there are two disks
8687
if temp_vm.get_disks_count() < 2:

0 commit comments

Comments
 (0)