diff options
| author | Justin Santa Barbara <justin@fathomdb.com> | 2011-03-14 14:02:27 -0700 |
|---|---|---|
| committer | Justin Santa Barbara <justin@fathomdb.com> | 2011-03-14 14:02:27 -0700 |
| commit | ce57cff740bc7f821bdbb0dd1367c037b6fa1c01 (patch) | |
| tree | adf7c4aaf0b02152aec11f90753a961f1648278c | |
| parent | 8c2a4a565e718e594a2f42ff84eb4b9017ef15a7 (diff) | |
| download | nova-ce57cff740bc7f821bdbb0dd1367c037b6fa1c01.tar.gz nova-ce57cff740bc7f821bdbb0dd1367c037b6fa1c01.tar.xz nova-ce57cff740bc7f821bdbb0dd1367c037b6fa1c01.zip | |
The exception is called "ApiError", not "APIError"
| -rw-r--r-- | nova/virt/libvirt_conn.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nova/virt/libvirt_conn.py b/nova/virt/libvirt_conn.py index 0b306c950..7994e9547 100644 --- a/nova/virt/libvirt_conn.py +++ b/nova/virt/libvirt_conn.py @@ -362,19 +362,19 @@ class LibvirtConnection(object): @exception.wrap_exception def pause(self, instance, callback): - raise exception.APIError("pause not supported for libvirt.") + raise exception.ApiError("pause not supported for libvirt.") @exception.wrap_exception def unpause(self, instance, callback): - raise exception.APIError("unpause not supported for libvirt.") + raise exception.ApiError("unpause not supported for libvirt.") @exception.wrap_exception def suspend(self, instance, callback): - raise exception.APIError("suspend not supported for libvirt") + raise exception.ApiError("suspend not supported for libvirt") @exception.wrap_exception def resume(self, instance, callback): - raise exception.APIError("resume not supported for libvirt") + raise exception.ApiError("resume not supported for libvirt") @exception.wrap_exception def rescue(self, instance, callback=None): @@ -779,7 +779,7 @@ class LibvirtConnection(object): 'cpu_time': cpu_time} def get_diagnostics(self, instance_name): - raise exception.APIError(_("diagnostics are not supported " + raise exception.ApiError(_("diagnostics are not supported " "for libvirt")) def get_disks(self, instance_name): |
