redirect on success
This commit is contained in:
parent
a808f3bf7e
commit
e045caebbe
2 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ $( document ).ready(function() {
|
||||||
$container.addClass('terminate-success')
|
$container.addClass('terminate-success')
|
||||||
.find('.vm-item-lg').text(data.text);
|
.find('.vm-item-lg').text(data.text);
|
||||||
$btn.remove();
|
$btn.remove();
|
||||||
// window.location = data.redirect;
|
window.location = data.redirect;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$container.addClass('terminate-fail')
|
$container.addClass('terminate-fail')
|
||||||
|
|
|
@ -971,7 +971,7 @@ class VirtualMachineView(LoginRequiredMixin, View):
|
||||||
break
|
break
|
||||||
try:
|
try:
|
||||||
manager.get_vm(self.kwargs.get('pk'))
|
manager.get_vm(self.kwargs.get('pk'))
|
||||||
except:
|
except BaseException:
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
sleep(2)
|
sleep(2)
|
||||||
|
|
Loading…
Reference in a new issue