1
0
Fork 0
mirror of https://github.com/ThomasGsp/HyperProxmox.git synced 2025-02-14 12:12:16 +00:00

Multiples fix

This commit is contained in:
Tlams 2018-04-28 19:21:27 +01:00
parent 1955d0e65c
commit 65fb5e3c43
2 changed files with 3 additions and 1 deletions

View file

@ -271,6 +271,9 @@ class Analyse:
disk["node"] = value_nodes_list["node"]
disk["date"] = int(insert_time)
disk["cluster"] = cluster["name"]
if not "used" in disk:
disk["used"] = 0
totalsize += disk["size"]
self.mongo.insert_disks(disk)

View file

@ -120,7 +120,6 @@ class MongoDB:
# mapping
collection = self.__mappingcol(col)
if collection:
print(col, id)
self.db[collection].remove({"_id": ObjectId(id)})
result = {
"result": "OK",