From 5864c34115e4110c1784bc83a013a0b61cebd7d9 Mon Sep 17 00:00:00 2001 From: vrde Date: Thu, 31 Mar 2016 11:50:48 +0200 Subject: [PATCH] Remove redundant documentation --- bigchaindb/config_utils.py | 37 +------------------------------------ 1 file changed, 1 insertion(+), 36 deletions(-) diff --git a/bigchaindb/config_utils.py b/bigchaindb/config_utils.py index e4e23144..f165334a 100644 --- a/bigchaindb/config_utils.py +++ b/bigchaindb/config_utils.py @@ -8,44 +8,9 @@ Note that there is a precedence in reading configuration values: - local config file; - environment vars; - default config file (contained in ``bigchaindb.__init__``). - -This means that if the default configuration contains an entry that is: - -``` -{... - "database": {"host": "localhost", - "port": 28015} -...} -``` - -while your local file `local.json` contains: -``` -{... - "database": {"host": "whatever"} -...} -``` - -and you run this command: -``` -$ BIGCHAINDB_DATABASE_HOST=foobar BIGCHAINDB_DATABASE_PORT=42000 bigchaindb -c local.json show-config -``` - -You will get: -``` -INFO:bigchaindb.config_utils:Configuration loaded from `local.json` -{'CONFIGURED': True, - 'api_endpoint': 'http://localhost:8008/api/v1', - 'consensus_plugin': 'default', - 'database': {'host': 'localhost', 'name': 'bigchain', 'port': 28015}, - 'keypair': {'private': 'Hbqvh...', - 'public': '2Bi5NU...'}, - 'keyring': [], - 'statsd': {'host': 'localhost', 'port': 8125, 'rate': 0.01}} - -``` - """ + import os import copy import json