Another bugfix

See #179
This commit is contained in:
Markus Unterwaditzer 2015-02-22 14:59:36 +01:00
parent 6541b5b4af
commit 1e9fe12904

View file

@ -186,6 +186,7 @@ def _discover_from_config(config):
def _handle_collection_not_found(config, collection, e=None):
storage_name = config.get('instance_name', None)
assert config.setdefault('collection', collection) == collection
cli_logger.error('{}No collection {} found for storage {}.'
.format('{}\n'.format(e) if e else '',
@ -195,7 +196,7 @@ def _handle_collection_not_found(config, collection, e=None):
storage_type = config['type']
cls, config = storage_class_from_config(config)
try:
args = cls.create_collection(collection=collection, **config)
args = cls.create_collection(**config)
args['type'] = storage_type
return args
except NotImplementedError as e: