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
This commit is contained in:
Simon Pasquier 2013-05-27 17:17:11 +02:00
parent 64b234d5cb
commit fa5079c257
1 changed files with 1 additions and 1 deletions

View File

@ -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)