|
|
@@ -3,11 +3,12 @@
|
|
|
|
|
|
from oslo_config import cfg
|
|
|
|
|
|
-opts = [
|
|
|
- cfg.IntOpt('default_requests_timeout',
|
|
|
- default=60,
|
|
|
- help='Number of seconds for HTTP request timeouts.'),
|
|
|
-]
|
|
|
-
|
|
|
-CONF = cfg.CONF
|
|
|
-CONF.register_opts(opts)
|
|
|
+
|
|
|
+def init_common_opts():
|
|
|
+ opts = [
|
|
|
+ cfg.IntOpt('default_requests_timeout',
|
|
|
+ default=60,
|
|
|
+ help='Number of seconds for HTTP request timeouts.'),
|
|
|
+ ]
|
|
|
+
|
|
|
+ cfg.CONF.register_opts(opts)
|