Add user generated public ssh keys as well

This commit is contained in:
modulos 2017-05-25 15:50:10 +02:00
parent 9753dfd2fc
commit 35f129a4c7

View file

@ -355,7 +355,6 @@ class GenerateVMSSHKeysView(LoginRequiredMixin, FormView):
manager.oneadmin_client.call('user.update', opennebula_user.id, manager.oneadmin_client.call('user.update', opennebula_user.id,
'<CONTEXT><SSH_PUBLIC_KEY>{ssh_key}</SSH_PUBLIC_KEY></CONTEXT>'.format(ssh_key=user_key.public_key)) '<CONTEXT><SSH_PUBLIC_KEY>{ssh_key}</SSH_PUBLIC_KEY></CONTEXT>'.format(ssh_key=user_key.public_key))
# return HttpResponseRedirect(reverse('hosting:key_pair'))
return render(self.request, self.template_name, context) return render(self.request, self.template_name, context)
def post(self, request, *args, **kwargs): def post(self, request, *args, **kwargs):