summaryrefslogtreecommitdiffstats
path: root/bin/instance-usage-audit
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-05-01 18:07:51 +0000
committerGerrit Code Review <review@openstack.org>2012-05-01 18:07:51 +0000
commit19e03e95d354c55df4b9c37712ffc4c56b561826 (patch)
tree51b7eb1d117e0a9b6d038ae1f1788b8baafab537 /bin/instance-usage-audit
parent6ba704730e7c0a04cf49c154334bf11a7c066789 (diff)
parent995235ac26585b5160bd0ab10cfb5db3fda8310e (diff)
Merge "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."
Diffstat (limited to 'bin/instance-usage-audit')
-rwxr-xr-xbin/instance-usage-audit2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/instance-usage-audit b/bin/instance-usage-audit
index d40faa3e1..48ded73cf 100755
--- a/bin/instance-usage-audit
+++ b/bin/instance-usage-audit
@@ -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)