From 904af119d2b84a93e416b7b297eda3b321840669 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Mon, 26 Nov 2012 16:16:54 +0000 Subject: 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 --- bin/keystone-all | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') 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) -- cgit