mirror of
https://github.com/retspen/webvirtcloud
synced 2026-03-22 02:24:56 +00:00
fix vm clone log message error
This commit is contained in:
parent
6d0eea3979
commit
b599d8104e
1 changed files with 1 additions and 1 deletions
|
|
@ -1108,7 +1108,7 @@ def clone(request, pk):
|
||||||
user_instance.save()
|
user_instance.save()
|
||||||
msg = _("Create a clone of '%(instance_name)s'") % {"instance_name": instance.name}
|
msg = _("Create a clone of '%(instance_name)s'") % {"instance_name": instance.name}
|
||||||
messages.success(request, msg)
|
messages.success(request, msg)
|
||||||
addlogmsg(request.user.username, new_instance.name, msg)
|
addlogmsg(request.user.username, instance.compute.name, new_instance.name, msg)
|
||||||
|
|
||||||
if app_settings.CLONE_INSTANCE_AUTO_MIGRATE == "True":
|
if app_settings.CLONE_INSTANCE_AUTO_MIGRATE == "True":
|
||||||
new_compute = Compute.objects.order_by("?").first()
|
new_compute = Compute.objects.order_by("?").first()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue