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:
parent
64b234d5cb
commit
fa5079c257
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue