summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliyingjun <yingjun.li@kylin-cloud.com>2015-06-25 19:39:11 +0800
committerliyingjun <yingjun.li@kylin-cloud.com>2015-06-25 19:43:58 +0800
commitabd4a76cd06819861fef59420c3c9eea99d7ba8d (patch)
tree8f8435c82707f18af612d363840ffb822d9ca48a
parentb3198a77c0ec6149798da305b85dcada50cbd225 (diff)
downloadoslo-config-abd4a76cd06819861fef59420c3c9eea99d7ba8d.tar.gz
Fixes example for cfg
`type=PortType()` should be `type=PortType` in the example of cfg module Change-Id: I1e1449e1853fe48a280964b2b69cb2e6c283dda3 Closes-bug: #1468481
-rw-r--r--oslo_config/cfg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/oslo_config/cfg.py b/oslo_config/cfg.py
index 5b7ca5c..1876252 100644
--- a/oslo_config/cfg.py
+++ b/oslo_config/cfg.py
@@ -30,7 +30,7 @@ The schema for each option is defined using the
default='0.0.0.0',
help='IP address to listen on.'),
cfg.Opt('bind_port',
- type=PortType(),
+ type=PortType,
default=9292,
help='Port number to listen on.')
]