diff options
| author | matt.dietz@rackspace.com <> | 2011-07-21 16:50:00 -0500 |
|---|---|---|
| committer | matt.dietz@rackspace.com <> | 2011-07-21 16:50:00 -0500 |
| commit | f67ffed5fc42a1234ccbf0909bd7326c5a06307e (patch) | |
| tree | 5b6c6cedff03cea1ac3a77b32536109ead9eede9 /nova/exception.py | |
| parent | 806be42000cf54e5b2ff9fb03446e8e6924bd38b (diff) | |
| parent | 490226870887f9986f9f57b6af7cfcc92e45da7c (diff) | |
Resolved conflict with trunk
Diffstat (limited to 'nova/exception.py')
| -rw-r--r-- | nova/exception.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nova/exception.py b/nova/exception.py index ad6c005f8..38e705417 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -78,8 +78,8 @@ def wrap_db_error(f): except Exception, e: LOG.exception(_('DB exception wrapped.')) raise DBError(e) - return _wrap _wrap.func_name = f.func_name + return _wrap def wrap_exception(notifier=None, publisher_id=None, event_type=None, @@ -408,6 +408,11 @@ class FixedIpNotFoundForInstance(FixedIpNotFound): message = _("Instance %(instance_id)s has zero fixed ips.") +class FixedIpNotFoundForNetworkHost(FixedIpNotFound): + message = _("Network host %(host)s has zero fixed ips " + "in network %(network_id)s.") + + class FixedIpNotFoundForSpecificInstance(FixedIpNotFound): message = _("Instance %(instance_id)s doesn't have fixed ip '%(ip)s'.") |
