Commit 8cc57866 by Őry Máté

dashboard: allow setting vm name from vm-create

parent 76688a8b
...@@ -1912,8 +1912,9 @@ class VmCreate(LoginRequiredMixin, TemplateView): ...@@ -1912,8 +1912,9 @@ 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)
instances = [Instance.create_from_template( instances = [Instance.create_from_template(
template=template, owner=user)] template=template, owner=user, name=name)]
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