]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Add QUANTUM_ prefix for env used by quantum-debug
authorNachi Ueno <nachi@nttmcl.com>
Fri, 9 Nov 2012 21:36:44 +0000 (13:36 -0800)
committerNachi Ueno <nachi@nttmcl.com>
Fri, 9 Nov 2012 21:38:40 +0000 (13:38 -0800)
Fixes bug 1077204
from TEST_CONFIG_FILE to QUANTUM_TEST_CONFIG_FILE
also fixes openstack-common style

Change-Id: I03d386dd5fc28d91ef496aecb1b93ddb4f4a810d

openstack-common.conf
quantum/debug/README
quantum/debug/shell.py

index 00524ca4b425dc03c3422a2dcfa5b2986aec99ba..7bb3a365629d97b7050e65c9c7f58c3a13389314 100644 (file)
@@ -1,5 +1,5 @@
 [DEFAULT]
 # The list of modules to copy from openstack-common
-modules=cfg,context,eventlet_backdoor,exception,excutils,fileutils,gettextutils,lockutils,importutils,iniparser,jsonutils,local,log,loopingcall,network_utils,notifier,policy,rpc,service,setup,threadgroup,timeutils,uuidutils,version
+modules=cfg,context,eventlet_backdoor,exception,excutils,fileutils,gettextutils,importutils,iniparser,jsonutils,local,lockutils,log,loopingcall,network_utils,notifier,policy,rpc,service,setup,threadgroup,timeutils,uuidutils,version
 # The base module to hold the copy of openstack.common
 base=quantum
index 9ef1def447df3bd5f172a65b88603300e3d1ae5d..00d05fd157def50485a78e58299cd00f899773fa 100644 (file)
@@ -1,9 +1,9 @@
 Debug Helper Script for Quantum
 
 - Configure
-export TEST_CONFIG_FILE=/etc/quantum/debug.ini
+export QUANTUM_TEST_CONFIG_FILE=/etc/quantum/debug.ini
 or
-export TEST_CONFIG_FILE=/etc/quantum/l3_agent.ini
+export QUANTUM_TEST_CONFIG_FILE=/etc/quantum/l3_agent.ini
 
 you can also specify config file by --config-file option
 
index 65c9dc85f6c3cd89232cf75180e4e8b3988c73e2..e9ecf7fa1803a162e09594472dff74d794224b0f 100644 (file)
@@ -57,7 +57,7 @@ class QuantumDebugShell(QuantumShell):
             description, version)
         parser.add_argument(
             '--config-file',
-            default=env('TEST_CONFIG_FILE'),
+            default=env('QUANTUM_TEST_CONFIG_FILE'),
             help='Config file for interface driver '
                  '(You may also use l3_agent.ini)')
         return parser
@@ -67,7 +67,7 @@ class QuantumDebugShell(QuantumShell):
         if not self.options.config_file:
             raise exc.CommandError(
                 "You must provide a config file for bridge -"
-                " either --config-file or env[TEST_CONFIG_FILE]")
+                " either --config-file or env[QUANTUM_TEST_CONFIG_FILE]")
         client = self.client_manager.quantum
         cfg.CONF.register_opts(interface.OPTS)
         cfg.CONF.register_opts(QuantumDebugAgent.OPTS)