summaryrefslogtreecommitdiffstats
path: root/result_collection_api
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2016-06-17 16:09:26 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2016-06-17 17:24:50 +0800
commite57cc46414caf6cbada9597b8c77d0be4da10352 (patch)
tree758e2aee9dc10ba381c02f3f31ec58b8e974a8d5 /result_collection_api
parent9f086a390b3c9039528cb567811fa5cd181f7a2f (diff)
bugfix: adapt mongorestore to work in mongodb 3.0 and above
mongorestore --db db must be specified JIRA: FUNCTEST-322 Change-Id: Idfbc99f23735f8871f29bb0e5e0240d47a7877bb Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'result_collection_api')
-rw-r--r--result_collection_api/update/restore.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/result_collection_api/update/restore.py b/result_collection_api/update/restore.py
index c3e06cc..c45a0e6 100644
--- a/result_collection_api/update/restore.py
+++ b/result_collection_api/update/restore.py
@@ -24,7 +24,7 @@ parser.add_argument('-i', '--input_dir',
parser.add_argument('-d', '--db',
type=str,
required=False,
- default=None,
+ default='test_results_collection',
help='database name after the restore.')