Use save_and_reraise_exception() from common.

This patch common.excutils from openstack-common, which includes
save_and_reraise_exception().  The patch also converts the code
base to use it from there instead of nova.utils and then removes
it from nova.utils.

The initial motivation for this was removing another nova dependency
from nova.rpc so that it can eventually be moved to openstack-common.

Change-Id: I7354ca51a02aec9c709cf33f77d4abc46acc2742
This commit is contained in:
Russell Bryant
2012-05-01 17:31:26 -04:00
parent 0f6052784f
commit 7187713b52
5 changed files with 61 additions and 36 deletions

View File

@@ -1,7 +1,7 @@
[DEFAULT]
# The list of modules to copy from openstack-common
modules=cfg,local,importutils,iniparser
modules=cfg,excutils,local,importutils,iniparser
# The base module to hold the copy of openstack.common
base=nova