From fa5079c257c00b8b56138233aca5755c54db9143 Mon Sep 17 00:00:00 2001 From: Simon Pasquier Date: Mon, 27 May 2013 17:17:11 +0200 Subject: Verify that CONF.compute_driver is defined The compute_driver parameter is a mandatory parameter only for nodes running the Nova compute service. However Other Nova services like Nova API actually call the compute_driver_matches() function. Change-Id: Iac7cd46c6bdb4268cfbc650dcde0c95e69545f04 Fixes: bug #1184641 --- nova/virt/driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/virt/driver.py b/nova/virt/driver.py index d0a670a3e..93bff1ff4 100755 --- a/nova/virt/driver.py +++ b/nova/virt/driver.py @@ -964,4 +964,4 @@ def load_compute_driver(virtapi, compute_driver=None): def compute_driver_matches(match): - return CONF.compute_driver.endswith(match) + return CONF.compute_driver and CONF.compute_driver.endswith(match) -- cgit