A previous patch decoupled the RPC drivers from the nova.flags, breaking instance audit usage in the process.

This configures the instance audit usage to configure the RPC drivers properly with FLAGS so that the job can run.

Change-Id: Ia189d18d7b25a839de67439ccd363103c5af2f8f
This commit is contained in:
Matt Dietz
2012-05-01 17:36:46 +00:00
parent 2542e918e4
commit b79043d141

View File

@@ -55,6 +55,7 @@ from nova import db
from nova import exception
from nova import flags
from nova import log as logging
from nova import rpc
from nova import utils
import nova.compute.utils
@@ -62,6 +63,7 @@ import nova.compute.utils
FLAGS = flags.FLAGS
if __name__ == '__main__':
rpc.register_opts(FLAGS)
admin_context = context.get_admin_context()
utils.default_flagfile()
flags.FLAGS(sys.argv)