redirect on success

This commit is contained in:
Arvind Tiwari 2017-09-14 02:52:37 +05:30
parent a808f3bf7e
commit e045caebbe
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@ $( document ).ready(function() {
$container.addClass('terminate-success')
.find('.vm-item-lg').text(data.text);
$btn.remove();
// window.location = data.redirect;
window.location = data.redirect;
}
else {
$container.addClass('terminate-fail')

View file

@ -971,7 +971,7 @@ class VirtualMachineView(LoginRequiredMixin, View):
break
try:
manager.get_vm(self.kwargs.get('pk'))
except:
except BaseException:
break
else:
sleep(2)