storage: minor error handling fix
This commit is contained in:
parent
6c29c653a0
commit
d7af67d875
@ -215,7 +215,7 @@ class Storage(object):
|
|||||||
|
|
||||||
def init_volume(self, name, volume_config):
|
def init_volume(self, name, volume_config):
|
||||||
''' Initialize Volume instance attached to this domain '''
|
''' Initialize Volume instance attached to this domain '''
|
||||||
assert 'pool' in volume_config, "Pool missing in volume_config" % str(
|
assert 'pool' in volume_config, "Pool missing in volume_config " + str(
|
||||||
volume_config)
|
volume_config)
|
||||||
|
|
||||||
if 'name' not in volume_config:
|
if 'name' not in volume_config:
|
||||||
|
Loading…
Reference in New Issue
Block a user