Skip to content

Commit

Permalink
Add QUANTUM_ prefix for env used by quantum-debug
Browse files Browse the repository at this point in the history
Fixes bug 1077204
from TEST_CONFIG_FILE to QUANTUM_TEST_CONFIG_FILE
also fixes openstack-common style

Change-Id: I03d386dd5fc28d91ef496aecb1b93ddb4f4a810d
  • Loading branch information
Nachi Ueno committed Nov 9, 2012
1 parent 2cf66d2 commit 12674de
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion openstack-common.conf
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions quantum/debug/README
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions quantum/debug/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def build_option_parser(self, description, version):
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
Expand All @@ -67,7 +67,7 @@ def initialize_app(self, argv):
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)
Expand Down

0 comments on commit 12674de

Please sign in to comment.