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

Change for hide user/pw from api

This commit is contained in:
Tlams 2018-02-23 18:38:55 +00:00
parent 31817c1da2
commit 2086a0aa48

View file

@ -83,6 +83,15 @@ class Cluster:
"type": "PYTHON - API",
"value": "Invalid request: {0}".format(e)
}
## Revoir pour un truc plus clean
keyv = 0
for cluster in result["value"]:
for key in cluster:
if key == "password" or key == "user":
result["value"][keyv][key] = "Information not available"
keyv += 1
return json.dumps(result)
def POST(self):