From ed51557b5c46232ca251fdfa8e989d348c7a9c78 Mon Sep 17 00:00:00 2001 From: Kevin Koech Date: Thu, 6 Jun 2024 15:26:31 +0300 Subject: [PATCH] Updated command to delete database on destroy to use mongosh --- pr-db-mongo/pr_db_mongo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pr-db-mongo/pr_db_mongo.py b/pr-db-mongo/pr_db_mongo.py index a9de861..0f61cc0 100644 --- a/pr-db-mongo/pr_db_mongo.py +++ b/pr-db-mongo/pr_db_mongo.py @@ -72,7 +72,7 @@ def delete_pr_database(original_mongodb_url, db_name): print(f"{PLUGIN_NAME}: deleting database '{db_name}' ... ", end="") try: uri = get_uri(original_mongodb_url, db_name) - command = ["mongo", uri, "--eval", "db.dropDatabase()"] + command = ["mongosh", uri, "--eval", "db.dropDatabase()"] execute_bash(command) print("done")