@@ -390,12 +390,13 @@ async def create(
390390 name = name or validated_prompt ("Instance name" , lambda x : x and len (x ) < 65 )
391391 specs = pricing .data [pricing_entity ].get_services_specs (tier )
392392
393- vcpus = specs .vcpus
394- memory = specs .memory_mib
395- disk_size = specs .disk_mib
393+ vcpus = vcpus if vcpus and payment_type != PaymentType .hold else specs .vcpus
394+ memory = memory if memory and payment_type != PaymentType .hold else specs .memory_mib
395+ disk_size = rootfs_size if rootfs_size and payment_type != PaymentType .hold else specs .disk_mib
396+
396397 gpu_model = specs .gpu_model
397398
398- disk_size_info = f"Rootfs Size: { round (disk_size / 1024 , 2 )} GiB (defaulted to included storage in tier)"
399+ disk_size_info = f"Rootfs Size: { round (disk_size / 1024 , 2 )} GiB (defaulted to included storage in tier)"
399400 if not isinstance (rootfs_size , int ):
400401 rootfs_size = validated_int_prompt (
401402 "Custom Rootfs Size (MiB)" ,
@@ -405,7 +406,7 @@ async def create(
405406 )
406407 if rootfs_size > disk_size :
407408 disk_size = rootfs_size
408- disk_size_info = f"Rootfs Size: { round (rootfs_size / 1024 , 2 )} GiB (extended from included storage in tier)"
409+ disk_size_info = f"Rootfs Size: { round (rootfs_size / 1024 , 2 )} GiB (extended from included storage in tier)"
409410 echo (disk_size_info )
410411 volumes = []
411412 if any ([persistent_volume , ephemeral_volume , immutable_volume ]) or not skip_volume :
@@ -719,9 +720,9 @@ async def create(
719720 f"[orange3]{ key } [/orange3]: { value } "
720721 for key , value in {
721722 "$ALEPH" : f"[violet]{ displayable_amount (required_tokens , decimals = 8 )} /sec"
722- f" | { displayable_amount (3600 * required_tokens , decimals = 3 )} /hour"
723- f" | { displayable_amount (86400 * required_tokens , decimals = 3 )} /day"
724- f" | { displayable_amount (2628000 * required_tokens , decimals = 3 )} /month[/violet]" ,
723+ f" | { displayable_amount (3600 * required_tokens , decimals = 3 )} /hour"
724+ f" | { displayable_amount (86400 * required_tokens , decimals = 3 )} /day"
725+ f" | { displayable_amount (2628000 * required_tokens , decimals = 3 )} /month[/violet]" ,
725726 "Flow Distribution" : "\n [bright_cyan]80% ➜ CRN wallet[/bright_cyan]"
726727 f"\n Address: { crn_info .stream_reward_address } \n Tx: { flow_hash_crn } "
727728 f"\n [bright_cyan]20% ➜ Community wallet[/bright_cyan]"
0 commit comments