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