don't try to concatenate a string with a variable that can be None
Change-Id: I7226339858b60a0f390389242e63caae5eadb3d8 Partial-Bug: #1260726
This commit is contained in:
parent
59a778b857
commit
6be3bc4651
@ -52,7 +52,7 @@ if __name__ == '__main__':
|
|||||||
get_db_api().configure_db(CONF)
|
get_db_api().configure_db(CONF)
|
||||||
manager = dbaas.datastore_registry().get(CONF.datastore_manager)
|
manager = dbaas.datastore_registry().get(CONF.datastore_manager)
|
||||||
if not manager:
|
if not manager:
|
||||||
msg = ("Manager class not registered for datastore manager " +
|
msg = ("Manager class not registered for datastore manager %s" %
|
||||||
CONF.datastore_manager)
|
CONF.datastore_manager)
|
||||||
raise RuntimeError(msg)
|
raise RuntimeError(msg)
|
||||||
server = rpc_service.RpcService(manager=manager, host=CONF.guest_id)
|
server = rpc_service.RpcService(manager=manager, host=CONF.guest_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user