Do not hide empty privkeys

This commit is contained in:
vrde 2016-04-06 16:36:12 +02:00
parent 2a0598e9f1
commit a56aa992fa
No known key found for this signature in database
GPG Key ID: 6581C7C39B3D397D

View File

@ -27,7 +27,8 @@ def run_show_config(args):
# the system needs to be configured, then display information on how to
# configure the system.
bigchaindb.config_utils.autoconfigure(filename=args.config, force=True)
bigchaindb.config['keypair']['private'] = 'x' * 45
private_key = bigchaindb.config['keypair']['private']
bigchaindb.config['keypair']['private'] = 'x' * 45 if private_key else None
pprint(bigchaindb.config)