1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-25 15:45:23 +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() 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()