From 51c320eddb32dcc071a540a2956f6f349f04b787 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Mon, 8 Jul 2019 07:52:18 +0200 Subject: [PATCH] chg: [import] version is now configurable --- bin/import.py | 3 +-- conf/aks.conf.sample | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/import.py b/bin/import.py index 96e245e..d10173c 100644 --- a/bin/import.py +++ b/bin/import.py @@ -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) diff --git a/conf/aks.conf.sample b/conf/aks.conf.sample index 72b300a..fcdc6aa 100644 --- a/conf/aks.conf.sample +++ b/conf/aks.conf.sample @@ -2,3 +2,4 @@ uid-max-size = 400 ardb-port = 14242 namespace = default +version = aks 0.1