chg: [import] version is now configurable

This commit is contained in:
Alexandre Dulaunoy 2019-07-08 07:52:18 +02:00
parent 5a9af6c376
commit 51c320eddb
Signed by: adulau
GPG key ID: 09E2CD4944E6CBCD
2 changed files with 2 additions and 2 deletions

View file

@ -4,14 +4,13 @@ import argparse
import os
import configparser
version = 'aks 0.1'
parser = argparse.ArgumentParser(description='aks - import OpenPGP key into the datastore')
config = configparser.RawConfigParser()
config.read('../conf/aks.conf')
uid_max_size = int(config.get('global', 'uid-max-size'))
ardb_port = int(config.get('global', 'ardb-port'))
namespace = config.get('global', 'namespace')
version = config.get('global', 'version')
parser.add_argument('-f', '--file', help='OpenPGP key file')
parser.add_argument('--expired', help='Import expired key')
parser.add_argument('--namespace', help='Namespace where to import the OpenPGP key', default=namespace)

View file

@ -2,3 +2,4 @@
uid-max-size = 400
ardb-port = 14242
namespace = default
version = aks 0.1