From: SerenaFeng Date: Fri, 17 Jun 2016 08:09:26 +0000 (+0800) Subject: bugfix: adapt mongorestore to work in mongodb 3.0 and above X-Git-Tag: colorado.1.0~350 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=89208b0686b032a3298ee4b4f4a7da013bb0cfdf;p=releng.git 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 --- diff --git a/utils/test/result_collection_api/update/restore.py b/utils/test/result_collection_api/update/restore.py index c3e06cc1c..c45a0e621 100644 --- a/utils/test/result_collection_api/update/restore.py +++ b/utils/test/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.')