Skip to content

Commit

Permalink
Merge pull request #270 from Dany9966/common-conf
Browse files Browse the repository at this point in the history
Fix common option register
  • Loading branch information
Dany9966 authored Oct 16, 2023
2 parents 0fb2114 + acf1478 commit 64d86bf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
2 changes: 2 additions & 0 deletions coriolis/cmd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@

from coriolis import conf


eventlet.monkey_patch()
conf.init_common_opts()
17 changes: 9 additions & 8 deletions coriolis/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 64d86bf

Please sign in to comment.