From 5f23c3f60b35a86367cbf19fa965b24d0ce235f4 Mon Sep 17 00:00:00 2001 From: David Shrewsbury Date: Mon, 29 Oct 2012 14:25:28 -0400 Subject: [PATCH] Pass services driver path to HAProxy driver. Bug fix. Wasn't passing the full path to the OS services driver for HAProxy. Change-Id: I86c822d76b0c9d6c2a33964814f1484f4c56943e --- libra/worker/worker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libra/worker/worker.py b/libra/worker/worker.py index ae614be3..408d67b7 100644 --- a/libra/worker/worker.py +++ b/libra/worker/worker.py @@ -145,7 +145,8 @@ def main(): driver_class = importutils.import_class(known_drivers[args.driver]) if args.driver == 'haproxy': - driver = driver_class(args.haproxy_service) + logger.info("Selected HAProxy service: %s" % args.haproxy_service) + driver = driver_class(haproxy_services[args.haproxy_service]) else: driver = driver_class()