black formating in create-sc-instance
This commit is contained in:
parent
a00eb2a63f
commit
6472e38626
1 changed files with 4 additions and 4 deletions
|
@ -111,15 +111,15 @@ def create_server( # pylint: disable=too-many-arguments, too-many-locals
|
||||||
f"flavor '{flavor.name}' includes no disk, using block storage for all disks"
|
f"flavor '{flavor.name}' includes no disk, using block storage for all disks"
|
||||||
)
|
)
|
||||||
volume_type_name = "fast"
|
volume_type_name = "fast"
|
||||||
# volume_type = conn.volume.find_type(volume_type_name)
|
#volume_type = conn.volume.find_type(volume_type_name)
|
||||||
# if volume_type is None:
|
#if volume_type is None:
|
||||||
# raise RuntimeError(f"unable to find volume type '{volume_type_name}'")
|
#raise RuntimeError(f"unable to find volume type '{volume_type_name}'")
|
||||||
for i, size in enumerate(disk_sizes):
|
for i, size in enumerate(disk_sizes):
|
||||||
block_mapping = {
|
block_mapping = {
|
||||||
"delete_on_termination": True,
|
"delete_on_termination": True,
|
||||||
"destination_type": "volume",
|
"destination_type": "volume",
|
||||||
"volume_size": size,
|
"volume_size": size,
|
||||||
# "volume_type": volume_type.name,
|
#"volume_type": volume_type.name,
|
||||||
}
|
}
|
||||||
# The first disk is the OS disk, base it on the selected image and bootable
|
# The first disk is the OS disk, base it on the selected image and bootable
|
||||||
if i == 0:
|
if i == 0:
|
||||||
|
|
Loading…
Add table
Reference in a new issue