From dcdb8cd6b1b525fc8eacd509586da3396c068251 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Mon, 3 Dec 2018 03:18:56 +0100 Subject: Postfix: replace cdb & btree tables with lmdb ones. Cf. lmdb_table(5). --- lib/modules/postmap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/modules/postmap') diff --git a/lib/modules/postmap b/lib/modules/postmap index 7080b25..8c9d54c 100644 --- a/lib/modules/postmap +++ b/lib/modules/postmap @@ -42,7 +42,7 @@ def file_suffix(instance, db): null.closed # See postmap(1) and postalias(1) - suffixes = { 'btree': 'db', 'cdb': 'cdb', 'hash': 'db' } + suffixes = { 'btree': 'db', 'cdb': 'cdb', 'hash': 'db', 'lmdb': 'lmdb' } return suffixes[db] @@ -64,7 +64,7 @@ def main(): module = AnsibleModule( argument_spec = dict( src = dict( required=True ), - db = dict( choices=['btree','cdb','hash'] ), + db = dict( choices=['btree','cdb','hash','lmdb'] ), cmd = dict( choices=['postmap','postalias'], default='postmap' ), instance = dict( required=False ) ), -- cgit v1.2.3