1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-11-01 03:54:15 +00:00

fix vm clone log message error

This commit is contained in:
catborise 2021-08-06 08:25:56 +03:00 committed by catborise
parent 2e3480677c
commit 2f2bd9622d

View file

@ -1108,7 +1108,7 @@ def clone(request, pk):
user_instance.save()
msg = _("Create a clone of '%(instance_name)s'") % {"instance_name": instance.name}
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":
new_compute = Compute.objects.order_by("?").first()