Skip to content

Commit

Permalink
Verify that CONF.compute_driver is defined
Browse files Browse the repository at this point in the history
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
  • Loading branch information
simonpasquier committed May 29, 2013
1 parent 64b234d commit fa5079c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nova/virt/driver.py
Expand Up @@ -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)

0 comments on commit fa5079c

Please sign in to comment.