summaryrefslogtreecommitdiffstats
path: root/openstack/common/cfg.py
diff options
context:
space:
mode:
Diffstat (limited to 'openstack/common/cfg.py')
-rw-r--r--openstack/common/cfg.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/openstack/common/cfg.py b/openstack/common/cfg.py
index af03f10..e967c61 100644
--- a/openstack/common/cfg.py
+++ b/openstack/common/cfg.py
@@ -211,7 +211,7 @@ Options may be declared as required so that an error is raised if the user
does not supply a value for the option.
Options may be declared as secret so that their values are not leaked into
-log files:
+log files::
opts = [
cfg.StrOpt('s3_store_access_key', secret=True),
@@ -220,20 +220,20 @@ log files:
]
This module also contains a global instance of the CommonConfigOpts class
-in order to support a common usage pattern in OpenStack:
+in order to support a common usage pattern in OpenStack::
- from openstack.common import cfg
+ from openstack.common import cfg
- opts = [
- cfg.StrOpt('bind_host', default='0.0.0.0'),
- cfg.IntOpt('bind_port', default=9292),
- ]
+ opts = [
+ cfg.StrOpt('bind_host', default='0.0.0.0'),
+ cfg.IntOpt('bind_port', default=9292),
+ ]
- CONF = cfg.CONF
- CONF.register_opts(opts)
+ CONF = cfg.CONF
+ CONF.register_opts(opts)
- def start(server, app):
- server.start(app, CONF.bind_port, CONF.bind_host)
+ def start(server, app):
+ server.start(app, CONF.bind_port, CONF.bind_host)
"""