summaryrefslogtreecommitdiffstats
path: root/openstack/common/rpc/matchmaker.py
diff options
context:
space:
mode:
authorJoe Gordon <jogo@cloudscaling.com>2013-03-25 12:35:34 -0400
committerJoe Gordon <jogo@cloudscaling.com>2013-03-25 12:38:29 -0400
commit5c825e4ddcf0aa980ec61c0e420328169b5a9ed6 (patch)
tree3d75bfc2aab971b60bdd310fadc303d69b3091b2 /openstack/common/rpc/matchmaker.py
parent575e74d352d685773513218a286979bb58920246 (diff)
downloadoslo-5c825e4ddcf0aa980ec61c0e420328169b5a9ed6.tar.gz
oslo-5c825e4ddcf0aa980ec61c0e420328169b5a9ed6.tar.xz
oslo-5c825e4ddcf0aa980ec61c0e420328169b5a9ed6.zip
Fix default values for Matchmaker IntOpts
The following should use ints not strings. * matchmaker_heartbeat_freq * matchmaker_heartbeat_ttl Fix bug 1159889 Change-Id: If2ce034d2a9876dbe6b232a1f5d73367d29074b0
Diffstat (limited to 'openstack/common/rpc/matchmaker.py')
-rw-r--r--openstack/common/rpc/matchmaker.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/openstack/common/rpc/matchmaker.py b/openstack/common/rpc/matchmaker.py
index 2ff5ecc..7366246 100644
--- a/openstack/common/rpc/matchmaker.py
+++ b/openstack/common/rpc/matchmaker.py
@@ -35,10 +35,10 @@ matchmaker_opts = [
default='/etc/nova/matchmaker_ring.json',
help='Matchmaker ring file (JSON)'),
cfg.IntOpt('matchmaker_heartbeat_freq',
- default='300',
+ default=300,
help='Heartbeat frequency'),
cfg.IntOpt('matchmaker_heartbeat_ttl',
- default='600',
+ default=600,
help='Heartbeat time-to-live.'),
]