fixed create vm method

This commit is contained in:
Levi 2017-05-06 18:04:45 -05:00
commit c9c7023c73
4 changed files with 66 additions and 1 deletions

View file

@ -350,7 +350,8 @@ class PaymentVMView(LoginRequiredMixin, FormView):
hosting_admin = HostingManageVMAdmin.__new__(HostingManageVMAdmin)
hosting_admin.init_opennebula_client(request)
hosting_admin.create_vm(request)
oppennebula_vm_id = hosting_admin.create_vm_view(vm_type.get_specs())
plan.oppenebula_id = oppennebula_vm_id
# Send notification to ungleich as soon as VM has been booked
context = {