From ff8fdb76b1e4a44ce550b094feedc352940f66dd Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sat, 8 Aug 2020 19:30:25 +0200 Subject: [PATCH] ++ test --- uncloud_pay/management/commands/add-opennebula-vm-orders.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/uncloud_pay/management/commands/add-opennebula-vm-orders.py b/uncloud_pay/management/commands/add-opennebula-vm-orders.py index 504c5d6..8febc21 100644 --- a/uncloud_pay/management/commands/add-opennebula-vm-orders.py +++ b/uncloud_pay/management/commands/add-opennebula-vm-orders.py @@ -65,13 +65,17 @@ class Command(BaseCommand): vm25206_ssd.create_order_at(timezone.make_aware(datetime.datetime(2020,3,3))) vm25206_ssd.save() - sys.exit(0) + # change 1 vm25206.cores = 2 vm25206.ram_in_gb = 8 vm25206.save() vm25206.create_or_update_order(when_to_start=timezone.make_aware(datetime.datetime(2020,4,17))) + + sys.exit(0) + + vm25206_ssd.size_in_gb = 50 vm25206_ssd.save() vm25206_ssd.create_or_update_order(when_to_start=timezone.make_aware(datetime.datetime(2020,8,5)))