From 413e79315ac1e54a8e5a4e8459869f0c9c8ceab1 Mon Sep 17 00:00:00 2001 From: Tlams Date: Thu, 8 Feb 2018 18:17:08 +0000 Subject: [PATCH] change def name --- code/scripts/main/core/modules/mod_database.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/scripts/main/core/modules/mod_database.py b/code/scripts/main/core/modules/mod_database.py index 66c9b0d..6391f7f 100644 --- a/code/scripts/main/core/modules/mod_database.py +++ b/code/scripts/main/core/modules/mod_database.py @@ -111,7 +111,7 @@ class MongoDB: } return result - def insert_new_cluster(self, data): + def insert_clusters_conf(self, data): try: self.db[self.collection_clusters].insert(data) result = { @@ -125,7 +125,7 @@ class MongoDB: } return result - def update_cluster(self, cluster, data): + def update_cluster_conf(self, cluster, data): try: self.db[self.collection_clusters].update({"vmid": str(cluster)}, {'$set': data}, upsert=False) result = { @@ -139,7 +139,7 @@ class MongoDB: } return result - def delete_cluster(self, cluster): + def delete_cluster_conf(self, cluster): try: self.db[self.collection_clusters].remove({"cluster": str(cluster)}) result = {