changeset 2299:e099586f9de5

mod_storage_ldap: Handle being passed an explicit storage "type" (fixes #654)
author Kim Alvefur <zash@zash.se>
date Sat, 17 Sep 2016 18:04:46 +0200
parents a59671b3dd43
children dded110af017
files mod_storage_ldap/mod_storage_ldap.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_storage_ldap/mod_storage_ldap.lua	Sun Sep 11 00:09:52 2016 +0200
+++ b/mod_storage_ldap/mod_storage_ldap.lua	Sat Sep 17 18:04:46 2016 +0200
@@ -172,7 +172,7 @@
 function driver:open(store, typ)
     local adapter = adapters[store];
 
-    if adapter and not typ then
+    if adapter and typ == nil or typ == "keyval" then
         return adapter;
     end
     return nil, "unsupported-store";