Move opennebula specific code to celery to make it asynchronous
This commit is contained in:
parent
a52215bb56
commit
bc69cc49e5
1 changed files with 0 additions and 8 deletions
|
@ -1011,14 +1011,6 @@ class OrderConfirmationView(DetailView, FormView):
|
|||
user_hosting_key = UserHostingKey.objects.get(id=self.request.session['new_user_hosting_key_id'])
|
||||
user_hosting_key.user = new_user
|
||||
user_hosting_key.save()
|
||||
|
||||
owner = new_user
|
||||
manager = OpenNebulaManager(
|
||||
email=owner.username,
|
||||
password=owner.password
|
||||
)
|
||||
keys_to_save = get_all_public_keys(new_user)
|
||||
manager.save_key_in_opennebula_user('\n'.join(keys_to_save))
|
||||
else:
|
||||
# We assume that if the user is here, his/her StripeCustomer
|
||||
# object already exists
|
||||
|
|
Loading…
Reference in a new issue