summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2012-11-26 16:16:54 +0000
committerMark McLoughlin <markmc@redhat.com>2012-11-26 16:19:36 +0000
commit904af119d2b84a93e416b7b297eda3b321840669 (patch)
tree948afdfaba031264c4ac8ead4ccc64ccb239d0db /bin
parent07c1aafdf20db6d6d7c0d3e15074bc02e2f1d2aa (diff)
downloadkeystone-904af119d2b84a93e416b7b297eda3b321840669.tar.gz
keystone-904af119d2b84a93e416b7b297eda3b321840669.tar.xz
keystone-904af119d2b84a93e416b7b297eda3b321840669.zip
Stop using cfg's internal implementation details
The fact that a cfg opt register using register_opt() is available via the command line is actually a bug (see bug #1082279). Also, using the _cli_values attribute is clearly poking into private implementation details. Fix both issues by registering the opt using register_cli_opt() and accessing its value the normal way. Change-Id: If170dcd96daae5b4c3d7cdebed914df417c2209b
Diffstat (limited to 'bin')
-rwxr-xr-xbin/keystone-all2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/keystone-all b/bin/keystone-all
index 8867f455..bcb9f4f9 100755
--- a/bin/keystone-all
+++ b/bin/keystone-all
@@ -90,7 +90,7 @@ if __name__ == '__main__':
CONF.print_help()
sys.exit(1)
- monkeypatch_thread = not CONF._cli_values['standard_threads']
+ monkeypatch_thread = not CONF.standard_threads
eventlet.patcher.monkey_patch(all=False, socket=True, time=True,
thread=monkeypatch_thread)