in between commit
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
This commit is contained in:
parent
c9a941e290
commit
a091079677
2 changed files with 21 additions and 29 deletions
|
|
@ -48,8 +48,6 @@ class Command(BaseCommand):
|
|||
)
|
||||
|
||||
|
||||
orders = []
|
||||
|
||||
# 25206
|
||||
vm25206 = VMProduct.objects.create(name="OpenNebula 25206",
|
||||
cores=1,
|
||||
|
|
@ -75,3 +73,16 @@ class Command(BaseCommand):
|
|||
recurring_price = disk_price_2020(30, VMDiskType.CEPH_SSD) / 2,
|
||||
description = vm25206_ssd
|
||||
)
|
||||
|
||||
vm25206.cores = 2
|
||||
vm25206.ram_in_gb = 8
|
||||
vm25206.save()
|
||||
|
||||
order_vm_25206_growing = Order.objects.create(owner=user,
|
||||
billing_address=addr,
|
||||
starting_date=timezone.make_aware(datetime.datetime(2020,4,17)),
|
||||
recurring_period=RecurringPeriod.PER_30D,
|
||||
recurring_price = vm_price_2020(cpu=2, ram=8) / 2,
|
||||
replaces=order_vm_25206,
|
||||
description = "VM %s" % vm25206
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue