diff options
Diffstat (limited to 'nova/virt')
-rw-r--r-- | nova/virt/libvirt/guest.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/nova/virt/libvirt/guest.py b/nova/virt/libvirt/guest.py index 0e0b5beba2..796370f613 100644 --- a/nova/virt/libvirt/guest.py +++ b/nova/virt/libvirt/guest.py @@ -662,9 +662,11 @@ class BlockDevice(object): False if completed """ status = self.get_job_info() - if not status and abort_on_error: - msg = _('libvirt error while requesting blockjob info.') - raise exception.NovaException(msg) + if not status: + if abort_on_error: + msg = _('libvirt error while requesting blockjob info.') + raise exception.NovaException(msg) + return False if wait_for_job_clean: job_ended = status.job == 0 |