]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Pass 'cinder' project into ConfigOpts
authorRick Harris <rconradharris@gmail.com>
Mon, 16 Jul 2012 19:33:45 +0000 (20:33 +0100)
committerMark McLoughlin <markmc@redhat.com>
Mon, 16 Jul 2012 20:47:37 +0000 (21:47 +0100)
Cherry-picks fb96f7d from Nova.

Change-Id: I1a11e8fd6a56b2336457f7df178c2b3c187246c3

cinder/flags.py

index 60e86999b79f6cf09bce8987b2f78bec6156e1ca..e3178cb3183ee80e33b08dea549273e14c9c0c28 100644 (file)
@@ -37,6 +37,8 @@ from cinder.openstack.common import cfg
 class CinderConfigOpts(cfg.CommonConfigOpts):
 
     def __init__(self, *args, **kwargs):
+        if 'project' not in kwargs:
+            kwargs['project'] = 'cinder'
         super(CinderConfigOpts, self).__init__(*args, **kwargs)
         self.disable_interspersed_args()