1
0
Fork 0
mirror of https://github.com/ThomasGsp/HyperProxmox.git synced 2025-03-09 15:40:18 +00:00

Change find_one to find, for iso output

This commit is contained in:
Tlams 2018-02-19 16:09:44 +00:00
parent 34a1cc9699
commit ef85e04c3d

View file

@ -110,7 +110,7 @@ class MongoDB:
result = {
"result": "OK",
"value": json.loads(
dumps(self.db[self.collection_clusters].find_one(
dumps(self.db[self.collection_clusters].find(
{'$and': [{'date': int(date), 'cluster': cluster}]})))
}
@ -272,7 +272,7 @@ class MongoDB:
result = {
"result": "OK",
"value": json.loads(
dumps(self.db[self.collection_nodes].find_one(
dumps(self.db[self.collection_nodes].find(
{'$and': [{'date': int(date), 'cluster': cluster, 'node': node}]})))
}
@ -325,7 +325,7 @@ class MongoDB:
result = {
"result": "OK",
"value": json.loads(dumps(
self.db[self.collection_instances].find_one(
self.db[self.collection_instances].find(
{'$and': [{"date": int(date), "cluster": cluster, "node": node, "vmid": int(vmid)}]})))
}