mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-24 23:25:24 +00:00
fix vm clone log message error
This commit is contained in:
parent
2e3480677c
commit
2f2bd9622d
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…
Reference in a new issue