mirror of
https://github.com/ThomasGsp/HyperProxmox.git
synced 2025-03-09 15:40:18 +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["node"] = value_nodes_list["node"]
|
||||||
disk["date"] = int(insert_time)
|
disk["date"] = int(insert_time)
|
||||||
disk["cluster"] = cluster["name"]
|
disk["cluster"] = cluster["name"]
|
||||||
|
if not "used" in disk:
|
||||||
|
disk["used"] = 0
|
||||||
|
|
||||||
totalsize += disk["size"]
|
totalsize += disk["size"]
|
||||||
self.mongo.insert_disks(disk)
|
self.mongo.insert_disks(disk)
|
||||||
|
|
||||||
|
|
|
@ -120,7 +120,6 @@ class MongoDB:
|
||||||
# mapping
|
# mapping
|
||||||
collection = self.__mappingcol(col)
|
collection = self.__mappingcol(col)
|
||||||
if collection:
|
if collection:
|
||||||
print(col, id)
|
|
||||||
self.db[collection].remove({"_id": ObjectId(id)})
|
self.db[collection].remove({"_id": ObjectId(id)})
|
||||||
result = {
|
result = {
|
||||||
"result": "OK",
|
"result": "OK",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue