mirror of
https://github.com/ThomasGsp/HyperProxmox.git
synced 2025-02-14 12:12:16 +00:00
Multiples fix
This commit is contained in:
parent
1955d0e65c
commit
65fb5e3c43
2 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue