Commit 53da6b24 by Őry Máté

dashboard: fix method call

parent 8cc57866
...@@ -1912,9 +1912,10 @@ class VmCreate(LoginRequiredMixin, TemplateView): ...@@ -1912,9 +1912,10 @@ class VmCreate(LoginRequiredMixin, TemplateView):
if not template.has_level(request.user, 'user'): if not template.has_level(request.user, 'user'):
raise PermissionDenied() raise PermissionDenied()
name = request.POST.get("name", None) args = {"template": template, "owner": user}
instances = [Instance.create_from_template( if "name" in request.POST:
template=template, owner=user, name=name)] args["name"] = request.POST.get("name")
instances = [Instance.create_from_template(**args)]
return self.__deploy(request, instances) return self.__deploy(request, instances)
def __create_customized(self, request, *args, **kwargs): def __create_customized(self, request, *args, **kwargs):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment