From 480018e337a1eb5254ea6f7ff10f292dfc507b00 Mon Sep 17 00:00:00 2001 From: Adam Gandelman Date: Mon, 19 Aug 2013 15:09:46 -0700 Subject: [PATCH] Always render HAProxy context, with or without peers. --- hooks/nova_cc_context.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/hooks/nova_cc_context.py b/hooks/nova_cc_context.py index dc587415..cbc667da 100644 --- a/hooks/nova_cc_context.py +++ b/hooks/nova_cc_context.py @@ -58,9 +58,6 @@ class HAProxyContext(context.HAProxyContext): ''' from nova_cc_utils import api_port ctxt = super(HAProxyContext, self).__call__() - if not ctxt: - # we do not have any other peers, do not load balance yet. - return {} # determine which port api processes should bind to, depending # on existence of haproxy + apache frontends