def _create_collection(self, opts):
    (scope, collection) = self._get_scope_collection(opts.create_collection)
    (_, errors) = self.rest.create_collection(opts.bucket, scope, collection, opts.max_ttl)
    _exit_if_errors(errors)
    _success('Collection created')
def _create_collection(self, opts):
    (scope, collection) = self._get_scope_collection(opts.create_collection)
    (_, errors) = self.rest.create_collection(opts.bucket, scope, collection, opts.max_ttl)
    _exit_if_errors(errors)
    _success('Collection created')